Skip to content

Commit ccace43

Browse files
committed
Update env.py
1 parent 9ad5d23 commit ccace43

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

env.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ def install_vendor():
1515
os.remove("vendor/GFPGAN") if os.path.exists("vendor/GFPGAN") else None
1616
# git clone using IPython magic
1717
IPython.get_ipython().system("git clone https://github.com/TencentARC/GFPGAN.git vendor/GFPGAN > /dev/null")
18-
os.chdir("vendor/Real-GFPGAN")
18+
os.chdir("vendor/GFPGAN")
1919
IPython.get_ipython().system("pip install basicsr > /dev/null")
2020
IPython.get_ipython().system("pip install facexlib > /dev/null")
21-
IPython.get_ipython().system("pip install -q -r vendor/GFPGAN/requirements.txt > /dev/null")
22-
IPython.get_ipython().system("python vendor/GFPGAN/setup.py develop > /dev/null")
21+
IPython.get_ipython().system("pip install -q -r requirements.txt > /dev/null")
22+
IPython.get_ipython().system("python setup.py develop > /dev/null")
2323
# used for enhancing the background (non-face) regions
2424
IPython.get_ipython().system("pip install realesrgan > /dev/null")
2525
# used for enhancing the background (non-face) regions
@@ -35,8 +35,8 @@ def install_vendor():
3535
IPython.get_ipython().system("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth -P weights > /dev/null")
3636
IPython.get_ipython().system("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.1/RealESRGAN_x2plus.pth -p weights > /dev/null")
3737
IPython.get_ipython().system("pip install basicsr facexlib gfpgan ffmpeg-python > /dev/null")
38-
IPython.get_ipython().system("pip install -q -r vendor/Real-ESRGAN/requirements.txt > /dev/null")
39-
IPython.get_ipython().system("python vendor/Real-ESRGAN/setup.py develop > /dev/null")
38+
IPython.get_ipython().system("pip install -q -r requirements.txt > /dev/null")
39+
IPython.get_ipython().system("python setup.py develop > /dev/null")
4040
os.chdir("../..")
4141
# generate a random file to mark that the vendors are installed
4242
open("vendor/.installed", "w").close()

0 commit comments

Comments
 (0)