Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanHacks committed Sep 18, 2020
1 parent 5265ef2 commit f06cce4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/super_resolution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TRAIN:
]
batch_size: 512
width: 128
height: 32
height: 64
epochs: 500
cuda: True
ngpu: 4
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def generator_init(self):
if self.args.arch != 'bicubic':
model = model.to(self.device)
image_crit.to(self.device)
if cfg.ngpu > 1:
if cfg.ngpu >= 1:
model = torch.nn.DataParallel(model, device_ids=range(cfg.ngpu))
image_crit = torch.nn.DataParallel(image_crit, device_ids=range(cfg.ngpu))
if self.resume is not '':
Expand Down

0 comments on commit f06cce4

Please sign in to comment.