🐕

Use Real-ESRGAN

2022/11/03に公開約2,500字

Distributor

I was able to use it just by reading README.md.

Setup

get RealESRGAN_x4plus.pth

>wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P weights

install requirements

>pip install basicsr
>pip install facexlib
>pip install gfpgan
>pip install -r requirements.txt

setup.py develop

>python setup.py develop

Usage

Normal

>python inference_realesrgan.py -n RealESRGAN_x4plus -i inputs/ -o outputs/

-s 16

>python inference_realesrgan.py -n RealESRGAN_x4plus -i inputs/ -o outputs/ -s 16 --fp32

Use RealESRNet_x4plus.pth

>python inference_realesrgan.py -n RealESRNet_x4plus -i inputs/ -o outputs/ -s 8 --fp32
Downloading: "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.1/RealESRNet_x4plus.pth" to \weights\RealESRNet_x4plus.pth

100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 63.9M/63.9M [00:11<00:00, 5.98MB/s]

References

Discussion

ログインするとコメントできます