python edsr.py --integral --batch-size 16Specify super resolution scale factor with argument --scale (default=4).
python imagenet.py --integral <IMAGENET FOLDER PATH>Add --data-parallel to use DataParallel training.
To resample (prune) and evaluate the integral model run commands below:
python edsr.py --integral --resample --checkpoint=<INTEGRAL MODEL CHECKPOINT> --evaluate --batch-size 16python imagenet.py --integral --resample --evaluate --checkpoint <INTEGRAL MODEL CHECKPOINT> <IMAGENET FOLDER PATH> Here we do not train integral neural networks. Instead we convert pre-trained DNN to integral and tune integration partition with desired size only.
DNN -> INN -> Integration grid tuning.
python edsr.py --integral --resample --grid-tuning --batch-size 16