Spaces:
Build error
Build error
Update preprocess/humanparsing/run_parsing.py
Browse files18 unmodified lines19202122232425262728293018 unmodified linessession_options.execution_mode = ort.ExecutionMode.ORT_SEQUENTIALsession_options.add_session_config_entry('gpu_id', str(gpu_id))hf_hub_download(repo_id="levihsu/OOTDiffusion",filename="checkpoints/humanparsing/parsing_atr.onnx",local_dir=os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing'))hf_hub_download(repo_id="levihsu/OOTDiffusion",filename="checkpoints/humanparsing/parsing_lip.onnx",local_dir=os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing'))self.session = ort.InferenceSession(os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing/parsing_atr.onnx'),sess_options=session_options, providers=['CPUExecutionProvider'])18 unmodified lines192021222324252627282930313218 unmodified linessession_options.execution_mode = ort.ExecutionMode.ORT_SEQUENTIALsession_options.add_session_config_entry('gpu_id', str(gpu_id))print('start download')hf_hub_download(repo_id="levihsu/OOTDiffusion",filename="checkpoints/humanparsing/parsing_atr.onnx",local_dir=os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing'))hf_hub_download(repo_id="levihsu/OOTDiffusion",filename="checkpoints/humanparsing/parsing_lip.onnx",local_dir=os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing'))print('finish download')self.session = ort.InferenceSession(os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing/parsing_atr.onnx'),sess_options=session_options, providers=['CPUExecutionProvider'])
preprocess/humanparsing/run_parsing.py+2