mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-27 08:10:58 +00:00
Build (on ubuntu 21.10) #134
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gabrielklein on GitHub (Dec 21, 2021).
If you have some difficulties to build on ubuntu 21.10
sudo pip3 install typing-extensions
sudo pip3 install basicsr
sudo pip3 install -r requirements.txt
sudo python3.9 setup.py develop
sudo pip3 install realesrgan
wget https://github.com/TencentARC/GFPGAN/releases/download/v0.2.0/GFPGANCleanv1-NoCE-C2.pth -P experiments/pretrained_models
sudo python3 inference_gfpgan.py --upscale 2 --test_path inputs/whole_imgs --save_root results
sudo chown -R YOU:YOU '.'
sudo chown -R YOU:YOU '/usr/local/lib/python3.9/dist-packages/realesrgan/weights/RealESRGAN_x2plus.pth'
python3 inference_gfpgan.py --upscale 2 --test_path inputs/whole_imgs --save_root results