sanghyun-son / EDSR-PyTorch

PyTorch version of the paper 'Enhanced Deep Residual Networks for Single Image Super-Resolution' (CVPRW 2017)
MIT License
2.44k stars 673 forks source link

ValueError: num_samples should be a positive integer value, but got num_samples=0 #324

Open abbaskali opened 2 years ago

abbaskali commented 2 years ago

Dear All, I got this error could anyone solve it? ValueError: num_samples should be a positive integer value, but got num_samples=0

AnirudhaRamesh commented 2 years ago

If you just want to run this on custom images, open demo.sh and uncomment the command corresponding to # Test your own images (Line 32). Comment out the rest, and it should work.

abbaskali commented 2 years ago

thank you , I got another error it's 'rm' is not recognized as an internal or external command, operable program or batch file. how I can solve it please

haikunzhang95 commented 2 years ago

@abbaskali Are you using Windows or Ubuntu operating system?

abbaskali commented 2 years ago

@haikunzhang95 windows operating system

haikunzhang95 commented 2 years ago

@haikunzhang95 windows operating system

Maybe you should use the Ubuntu operating system?

abbaskali commented 2 years ago

@haikunzhang95 thank you Dr.Zhang i will try using Ubuntu and run the code

yjy-001 commented 1 year ago

self.loader_train = dataloader.DataLoader( MyConcatDataset(datasets), batch_size=args.batch_size, shuffle=False, pin_memory=not args.cpu, num_workers=args.n_threads, ) maybe you can try to change the "shuffle = True" to "shuffle = False"