stylegan2-pytorch icon indicating copy to clipboard operation
stylegan2-pytorch copied to clipboard

AssertionError: No images were found in ./data for training

Open gunahn opened this issue 3 years ago • 2 comments

Hi, thank you so much for making easy repo for styleGAN2.

I have a problem with using this code.

stylegan2_pytorch -- DCGAN/Knee_GAN/processed/2/test/ When I tried to use the above code, it shows error messages like this

AssertionError: No images were found in ./data for training

And DCGAN/Knee_GAN/processed/2/test/ is the path for data that I want to train. Can you help me out?

Thank you

Gun Ahn

gunahn avatar Jan 22 '21 01:01 gunahn

@gunahn Hi! There's an error in your command; it should be stylegan2_pytorch --data DCGAN/Knee_GAN/processed/2/test/

lucidrains avatar Jan 22 '21 01:01 lucidrains

Hi @lucidrains. I've got same type of problem with @gunahn . AssertionError: No images were found in /home/nagalab/Kazuyuki/Data/train_data_resize/ for training

Here is the code that I tried, stylegan2_pytorch --data /home/nagalab/Kazuyuki/Data/train_data_resize/ --name forOriginalImg --results_dir /home/nagalab/Kazuyuki/research/stylegan2_pytorch/results --models_dir /home/nagalab/Kazuyuki/research/stylegan2_pytorch/models --batch-size 256

In /home/nagalab/Kazuyuki/Data/train_data_resize/, there are JPG images which is 1024x1024 Could you please help me?

Thank you Kazuyuki Fukuda

KazuyukiFukuda avatar Jun 24 '21 06:06 KazuyukiFukuda