You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you help me? or showing more detailing configs file.
Traceback (most recent call last):
File "main.py", line 15, in
loader = data.Data(args) ## data loader
File "E:\SMSR-master\data_init_.py", line 9, in init
trainset = getattr(module_train, args.data_train)(args) ## load the dataset, args.data_train is the dataset name
File "E:\SMSR-master\data\div2k.py", line 6, in init
super(DIV2K, self).init(
File "E:\SMSR-master\data\multiscalesrdata.py", line 84, in init
self.repeat = args.test_every // (len(self.images_hr) // args.batch_size)
ZeroDivisionError: integer division or modulo by zero
The text was updated successfully, but these errors were encountered:
Hi @Jackyinuo, sorry for the late response.
It seems the reason is that len(self.images_hr) equals 0. Please re-check the training images are correctly organized and confirm dir_data (the parent path to the folder DIV2K) is updated in option.py.
Can you help me? or showing more detailing configs file.
Traceback (most recent call last):
File "main.py", line 15, in
loader = data.Data(args) ## data loader
File "E:\SMSR-master\data_init_.py", line 9, in init
trainset = getattr(module_train, args.data_train)(args) ## load the dataset, args.data_train is the dataset name
File "E:\SMSR-master\data\div2k.py", line 6, in init
super(DIV2K, self).init(
File "E:\SMSR-master\data\multiscalesrdata.py", line 84, in init
self.repeat = args.test_every // (len(self.images_hr) // args.batch_size)
ZeroDivisionError: integer division or modulo by zero
The text was updated successfully, but these errors were encountered: