pytorch/examples

The casting problem on the result of the model.

Open

#433 创建于 2018年11月1日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (9,429 fork)batch import
good first issue

仓库指标

Star
 (21,634 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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?

贡献者指南