chawin.chen
commited on
Commit
·
9d51f3e
1
Parent(s):
4d8766b
init
Browse files- config.py +2 -2
- start_local.sh +7 -0
config.py
CHANGED
|
@@ -412,8 +412,8 @@ if ENABLE_GFPGAN:
|
|
| 412 |
gfpgan_files_exist = True
|
| 413 |
required_files = [
|
| 414 |
"gfpgan_restorer.py",
|
| 415 |
-
"gfpgan/weights/detection_Resnet50_Final.pth",
|
| 416 |
-
"gfpgan/weights/parsing_parsenet.pth"
|
| 417 |
]
|
| 418 |
|
| 419 |
for file_path in required_files:
|
|
|
|
| 412 |
gfpgan_files_exist = True
|
| 413 |
required_files = [
|
| 414 |
"gfpgan_restorer.py",
|
| 415 |
+
f"{MODELS_PATH}/gfpgan/weights/detection_Resnet50_Final.pth",
|
| 416 |
+
f"{MODELS_PATH}/gfpgan/weights/parsing_parsenet.pth"
|
| 417 |
]
|
| 418 |
|
| 419 |
for file_path in required_files:
|
start_local.sh
CHANGED
|
@@ -1,5 +1,12 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
export TZ=Asia/Shanghai
|
| 3 |
export HOSTNAME=HG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
uvicorn app:app --workers 1 --loop asyncio --http httptools --host 0.0.0.0 --port 7860 --timeout-keep-alive 600
|
| 5 |
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
export TZ=Asia/Shanghai
|
| 3 |
export HOSTNAME=HG
|
| 4 |
+
export AUTO_INIT_GFPGAN=true
|
| 5 |
+
export AUTO_INIT_DDCOLOR=false
|
| 6 |
+
export AUTO_INIT_REALESRGAN=false
|
| 7 |
+
export AUTO_INIT_ANIME_STYLE=false
|
| 8 |
+
export AUTO_INIT_CLIP=false
|
| 9 |
+
export AUTO_INIT_RVM=true
|
| 10 |
+
export AUTO_INIT_REMBG=false
|
| 11 |
uvicorn app:app --workers 1 --loop asyncio --http httptools --host 0.0.0.0 --port 7860 --timeout-keep-alive 600
|
| 12 |
|