pytorch/examples

The casting problem on the result of the model.

Aperta

#433 aperta il 1 nov 2018

 (0 commenti) (0 reazioni) (0 assegnatari)Python (9429 fork)batch import
good first issue

Metriche repository

Star
 (21.634 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?

Guida contributor