Skip to content

Commit

Permalink
update inference.
Browse files Browse the repository at this point in the history
  • Loading branch information
sczhou committed Aug 9, 2022
1 parent 12cfcfc commit fbc4a80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inference_codeformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
if not torch.cuda.is_available(): # CPU
import warnings
warnings.warn('The unoptimized RealESRGAN is slow on CPU. We do not use it. '
'If you really want to use it, please modify the corresponding codes.')
'If you really want to use it, please modify the corresponding codes.',
category=RuntimeWarning)
bg_upsampler = None
else:
from basicsr.archs.rrdbnet_arch import RRDBNet
Expand Down

0 comments on commit fbc4a80

Please sign in to comment.