vicgalle / stable-diffusion-aesthetic-gradients

Personalization for Stable Diffusion via Aesthetic Gradients 🎨
https://arxiv.org/abs/2209.12330
Other
716 stars 65 forks source link

RuntimeError: torch.cat(): expected a non-empty list of Tensors #9

Closed rikkar69 closed 1 year ago

rikkar69 commented 1 year ago

Hello, getting this error when running gen_aesthetic_embeddings.py. I created the folder of images in the reference_images folder, any ideas what could be the issue?

vicgalle commented 1 year ago

It seems to me that your variable image_paths is empty. Check you are reading the correct directory and that the images are indeed there

rikkar69 commented 1 year ago

i moved the script to 'stable-diffusion-aesthetic-gradients' folder and it generated the embedding file, that was an easy fix. thanks!