chenlei commited on
Commit ·
d20fd19
1
Parent(s): 8402d66
update
Browse files
.gitattributes
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
|
| 17 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 13 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
checkpoints/humanparsing/parsing_atr.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04c7d1d070d0e0ae943d86b18cb5aaaea9e278d97462e9cfb270cbbe4cd977f4
|
| 3 |
+
size 266859305
|
checkpoints/humanparsing/parsing_lip.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8436e1dae96e2601c373d1ace29c8f0978b16357d9038c17a8ba756cca376dbc
|
| 3 |
+
size 266863411
|
preprocess/humanparsing/run_parsing.py
CHANGED
|
@@ -17,9 +17,9 @@ class Parsing:
|
|
| 17 |
session_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_ALL
|
| 18 |
session_options.execution_mode = ort.ExecutionMode.ORT_SEQUENTIAL
|
| 19 |
session_options.add_session_config_entry('gpu_id', str(gpu_id))
|
| 20 |
-
self.session = ort.InferenceSession(
|
| 21 |
sess_options=session_options, providers=['CPUExecutionProvider'])
|
| 22 |
-
self.lip_session = ort.InferenceSession(
|
| 23 |
sess_options=session_options, providers=['CPUExecutionProvider'])
|
| 24 |
|
| 25 |
|
|
|
|
| 17 |
session_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_ALL
|
| 18 |
session_options.execution_mode = ort.ExecutionMode.ORT_SEQUENTIAL
|
| 19 |
session_options.add_session_config_entry('gpu_id', str(gpu_id))
|
| 20 |
+
self.session = ort.InferenceSession(os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing/parsing_atr.onnx'),
|
| 21 |
sess_options=session_options, providers=['CPUExecutionProvider'])
|
| 22 |
+
self.lip_session = ort.InferenceSession(os.path.join(Path(__file__).absolute().parents[2].absolute(), 'checkpoints/humanparsing/parsing_lip.onnx'),
|
| 23 |
sess_options=session_options, providers=['CPUExecutionProvider'])
|
| 24 |
|
| 25 |
|