Skip to content
Snippets Groups Projects
Commit b13e310f authored by Sanghyun Son's avatar Sanghyun Son
Browse files

Merge branch 'master' into feature/rgan

parents 72a506ae 075eeec1
Branches
No related tags found
1 merge request!1Jan 09, 2018 updates
......@@ -33,6 +33,7 @@ We provide scripts for reproducing all the results from our paper. You can train
* **imageio**
* matplotlib
* tqdm
* cv2 >= 3.xx (Only if you use video input/output)
**Recent updates**
......
......@@ -77,6 +77,9 @@ class SRData(data.Dataset):
if train:
n_patches = args.batch_size * args.test_every
n_images = len(args.data_train) * len(self.images_hr)
if n_images == 0:
self.repeat = 0
else:
self.repeat = max(n_patches // n_images, 1)
# Below functions as used to prepare images
......
......@@ -6,12 +6,12 @@ import model
import loss
from option import args
from trainer import Trainer
from videotester import VideoTester
torch.manual_seed(args.seed)
checkpoint = utility.checkpoint(args)
if args.data_test == 'video':
from videotester import VideoTester
model = model.Model(args, checkpoint)
t = VideoTester(args, model, checkpoint)
t.test()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment