[Fix] Update preprocess_div2k_dataset.py
* Update preprocess_div2k_dataset.py
scales, crop-size and step should be int  type, not str.
* Update preprocess_div2k_dataset.py
@@ -351,14 +351,23 @@ def parse_args():
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--data-root', help='dataset root')
parser.add_argument(
- '--scales', nargs='*', default=[2, 3, 4], help='scale factor list')
+ '--scales',
+ nargs='*',
+ default=[2, 3, 4],
+ type=int,
+ help='scale factor list')
parser.add_argument(
'--crop-size',
nargs='?',
default=480,
+ type=int,
help='cropped size for HR images')
parser.add_argument(
- '--step', nargs='?', default=240, help='step size for HR images')
+ '--step',
+ nargs='?',
+ default=240,
+ type=int,
+ help='step size for HR images')
parser.add_argument(
'--thresh-size',
nargs='?',
