EDSR-PyTorch icon indicating copy to clipboard operation
EDSR-PyTorch copied to clipboard

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

Open abbaskali opened this issue 3 years ago • 7 comments

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

abbaskali avatar Dec 16 '21 12:12 abbaskali

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.

AnirudhaRamesh avatar Dec 22 '21 04:12 AnirudhaRamesh

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

abbaskali avatar Dec 25 '21 07:12 abbaskali

@abbaskali Are you using Windows or Ubuntu operating system?

haikunzhang95 avatar Dec 27 '21 10:12 haikunzhang95

@haikunzhang95 windows operating system

abbaskali avatar Dec 27 '21 10:12 abbaskali

@haikunzhang95 windows operating system

Maybe you should use the Ubuntu operating system?

haikunzhang95 avatar Dec 28 '21 02:12 haikunzhang95

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

abbaskali avatar Dec 28 '21 04:12 abbaskali

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"

yjy-001 avatar Nov 15 '23 09:11 yjy-001