提交 5da06e50 编写于 作者: L LielinJiang

fix edvr train on rocm

上级 d401a15e
......@@ -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.
先完成此消息的编辑!
想要评论请 注册