pytorch/examples

The casting problem on the result of the model.

Open

#433 opened on Nov 1, 2018

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (9,429 forks)batch import
good first issue

Repository metrics

Stars
 (21,634 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

In super_resolve.py, line 35, I think 'np.uint8(out_img_y[0])' should be 'np.uint8(out_img_y[0] + 0.5)'. This is because the value after the decimal point is discarded when casting. Would not rounding be better than discarding?

Contributor guide