未验证 提交 60c41c2f 编写于 作者: L LielinJiang 提交者: GitHub

fix edvr train on rocm (#331)

上级 870c902a
......@@ -48,7 +48,7 @@ class EDVRModel(BaseSRModel):
self.visual_items['lq+1'] = self.lq[:, 3, :, :, :]
self.visual_items['lq+2'] = self.lq[:, 4, :, :, :]
if 'gt' in input:
self.gt = paddle.to_tensor(input['gt'])
self.gt = input['gt']
self.visual_items['gt'] = self.gt
self.image_paths = input['lq_path']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册