In this study, advanced image processing technology is used to analyze the three-dimensional sand composite image, and the topography features of sand particles are successfully extracted and saved as high-quality image files. These image files were then trained using the latent diffusion model (LDM) to generate a large number of sand particles with real morphology, which were then applied to numerical studies. The effects of particle morphology on the macroscopic mechanical behavior and microscopic energy evolution of sand under complex stress paths were studied in detail, combined with the circular and elliptical particles widely used in current tests. The results show that with the increase of the irregularity of the sample shape, the cycle period and radius of the closed circle formed by the partial strain curve gradually decrease, and the center of the circle gradually shifts. In addition, the volume strain and liquefaction strength of sand samples increase with the increase of particle shape irregularity. It is particularly noteworthy that obvious vortex structures exist in the positions near the center where deformation is severe in the samples of circular and elliptical particles. However, such structures are difficult to be directly observed in sample with irregular particles. This phenomenon reveals the influence of particle morphology on the complexity of the mechanical behavior of sand, providing us with new insights into the understanding of the response mechanism of sand soil under complex stress conditions.