A major challenge in materials science is the determination of the structure of nanometre-sized objects. Here we present an approach that uses a generative machine learning model based on diffusion ...