未验证 提交 a7963dab 编写于 作者: N niuliling123 提交者: GitHub

Add sqrt and scale to amp black list for msvsr_reds (#736)

* Add sqrt and scale to amp black list for msvsr_reds

* Update requirements.txt
上级 85361824
......@@ -118,7 +118,7 @@ class MultiStageVSRModel(BaseSRModel):
net.find_unused_parameters = False
# put loss computation in amp context
with paddle.amp.auto_cast(enable=True, level=amp_level):
with paddle.amp.auto_cast(enable=True, custom_black_list={'sqrt','scale'}, level=amp_level):
output = self.nets['generator'](self.lq)
if isinstance(output, (list, tuple)):
out_stage2, output = output
......
......@@ -2,7 +2,7 @@ tqdm
PyYAML>=5.1
scikit-image>=0.14.0
scipy>=1.1.0
opencv-python
opencv-python <= 4.6.0
imageio==2.9.0
imageio-ffmpeg
librosa==0.8.1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册