Skip to content

Commit

Permalink
Fix runtime error in inference
Browse files Browse the repository at this point in the history
  • Loading branch information
elvisyjlin committed Jun 11, 2020
1 parent 57424ac commit 80d453b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def parse():
G.eval()
with torch.no_grad():
for batch_idx, (reals, labels) in enumerate(tqdm(test_data)):
reals, labels = reals.to(device), labels.to(device).type_as(reals)
reals, labels = reals.to(device), labels.type_as(reals).to(device)
target_labels = 1 - labels

# Modify images
Expand Down

0 comments on commit 80d453b

Please sign in to comment.