Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ MODEL_FILE = "ffhq2pumpkinheads_pix2pixHD_e03_itr4500-simp.onnx"
|
|
14 |
so = rt.SessionOptions()
|
15 |
so.inter_op_num_threads = 4
|
16 |
so.intra_op_num_threads = 4
|
17 |
-
session = rt.InferenceSession(MODEL_FILE, sess_options=so)
|
18 |
input_name = session.get_inputs()[0].name
|
19 |
print("input_name = " + str(input_name))
|
20 |
output_name = session.get_outputs()[0].name
|
|
|
14 |
so = rt.SessionOptions()
|
15 |
so.inter_op_num_threads = 4
|
16 |
so.intra_op_num_threads = 4
|
17 |
+
session = rt.InferenceSession(MODEL_FILE, sess_options=so,providers=['CPUExecutionProvider'])
|
18 |
input_name = session.get_inputs()[0].name
|
19 |
print("input_name = " + str(input_name))
|
20 |
output_name = session.get_outputs()[0].name
|