Skip to content

Commit

Permalink
Update predict_from_net.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justusschock authored May 4, 2020
1 parent 260a759 commit 2501b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shapenet/scripts/predict_from_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def process_sample(sample, img_size, net, device, crop=0.1):
).to(torch.float).unsqueeze(0).to(device)

# obtain prediction
pred = net(img_tensor).cpu().numpy()["pred"][0]
pred = net(img_tensor)['pred'][0].cpu().numpy()

# remap to original image
pred = pred * np.array([max_range / img_size, max_range / img_size])
Expand Down

0 comments on commit 2501b68

Please sign in to comment.