Spaces:
Running
on
T4
Running
on
T4
Ahsen Khaliq
commited on
Commit
·
3ef061e
1
Parent(s):
1f04245
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ os.system("pip install gdown")
|
|
6 |
os.system("gdown https://drive.google.com/uc?id=1riNxV1BWMAXfmWZ3LrQbEkvzV8f7lOCp")
|
7 |
|
8 |
opts = onnxruntime.SessionOptions()
|
9 |
-
opts.intra_op_num_threads =
|
10 |
onnx_session = onnxruntime.InferenceSession("face_paint_512_v2_0.onnx",sess_options=opts)
|
11 |
|
12 |
input_name = onnx_session.get_inputs()[0].name
|
|
|
6 |
os.system("gdown https://drive.google.com/uc?id=1riNxV1BWMAXfmWZ3LrQbEkvzV8f7lOCp")
|
7 |
|
8 |
opts = onnxruntime.SessionOptions()
|
9 |
+
opts.intra_op_num_threads = 32
|
10 |
onnx_session = onnxruntime.InferenceSession("face_paint_512_v2_0.onnx",sess_options=opts)
|
11 |
|
12 |
input_name = onnx_session.get_inputs()[0].name
|