Skip to content

Commit

Permalink
Update eval_gan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alterzero committed Apr 23, 2019
1 parent b02351b commit 7e68526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eval_gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def eval():
prediction = model(input)
t1 = time.time()
print("===> Processing: %s || Timer: %.4f sec." % (name[0], (t1 - t0)))
prediction = utils.denorm(prediction.data[0],vgg=True)
save_img(prediction.cpu(), name[0])
prediction = utils.denorm(prediction.data[0].cpu(),vgg=True)
save_img(prediction, name[0])

def save_img(img, img_name):
save_img = img.squeeze().clamp(0, 1).numpy().transpose(1,2,0)
Expand Down

0 comments on commit 7e68526

Please sign in to comment.