Spaces:
Build error
Build error
Update preprocess/humanparsing/run_parsing.py
Browse files
preprocess/humanparsing/run_parsing.py
CHANGED
|
@@ -19,12 +19,14 @@ class Parsing:
|
|
| 19 |
session_options.execution_mode = ort.ExecutionMode.ORT_SEQUENTIAL
|
| 20 |
session_options.add_session_config_entry('gpu_id', str(gpu_id))
|
| 21 |
|
|
|
|
| 22 |
hf_hub_download(repo_id="levihsu/OOTDiffusion",
|
| 23 |
filename="checkpoints/humanparsing/parsing_atr.onnx",
|
| 24 |
local_dir=os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing'))
|
| 25 |
hf_hub_download(repo_id="levihsu/OOTDiffusion",
|
| 26 |
filename="checkpoints/humanparsing/parsing_lip.onnx",
|
| 27 |
local_dir=os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing'))
|
|
|
|
| 28 |
|
| 29 |
self.session = ort.InferenceSession(os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing/parsing_atr.onnx'),
|
| 30 |
sess_options=session_options, providers=['CPUExecutionProvider'])
|
|
|
|
| 19 |
session_options.execution_mode = ort.ExecutionMode.ORT_SEQUENTIAL
|
| 20 |
session_options.add_session_config_entry('gpu_id', str(gpu_id))
|
| 21 |
|
| 22 |
+
print('start download')
|
| 23 |
hf_hub_download(repo_id="levihsu/OOTDiffusion",
|
| 24 |
filename="checkpoints/humanparsing/parsing_atr.onnx",
|
| 25 |
local_dir=os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing'))
|
| 26 |
hf_hub_download(repo_id="levihsu/OOTDiffusion",
|
| 27 |
filename="checkpoints/humanparsing/parsing_lip.onnx",
|
| 28 |
local_dir=os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing'))
|
| 29 |
+
print('finish download')
|
| 30 |
|
| 31 |
self.session = ort.InferenceSession(os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing/parsing_atr.onnx'),
|
| 32 |
sess_options=session_options, providers=['CPUExecutionProvider'])
|