@@ -15,11 +15,11 @@ def install_vendor():
15
15
os .remove ("vendor/GFPGAN" ) if os .path .exists ("vendor/GFPGAN" ) else None
16
16
# git clone using IPython magic
17
17
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" )
19
19
IPython .get_ipython ().system ("pip install basicsr > /dev/null" )
20
20
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" )
23
23
# used for enhancing the background (non-face) regions
24
24
IPython .get_ipython ().system ("pip install realesrgan > /dev/null" )
25
25
# used for enhancing the background (non-face) regions
@@ -35,8 +35,8 @@ def install_vendor():
35
35
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" )
36
36
IPython .get_ipython ().system ("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.1/RealESRGAN_x2plus.pth -p weights > /dev/null" )
37
37
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" )
40
40
os .chdir ("../.." )
41
41
# generate a random file to mark that the vendors are installed
42
42
open ("vendor/.installed" , "w" ).close ()
0 commit comments