Update python/run_axmodel.py
Browse files- python/run_axmodel.py +0 -4
python/run_axmodel.py
CHANGED
|
@@ -22,8 +22,6 @@ def main(args):
|
|
| 22 |
session = axe.InferenceSession(args.model_path)
|
| 23 |
output_names = [x.name for x in session.get_outputs()]
|
| 24 |
input_name = session.get_inputs()[0].name
|
| 25 |
-
print(input_name)
|
| 26 |
-
print(output_names)
|
| 27 |
|
| 28 |
ori_image = cv2.imread(args.input_path)
|
| 29 |
h, w = ori_image.shape[:2]
|
|
@@ -36,8 +34,6 @@ def main(args):
|
|
| 36 |
|
| 37 |
#image = (image /1.0).astype(np.float32)
|
| 38 |
image = np.transpose(np.expand_dims(np.ascontiguousarray(image), axis=0), (0,3,1,2))
|
| 39 |
-
print(image.shape)
|
| 40 |
-
|
| 41 |
|
| 42 |
# Use the model to generate super-resolved images
|
| 43 |
sr = session.run(output_names, {input_name: image})
|
|
|
|
| 22 |
session = axe.InferenceSession(args.model_path)
|
| 23 |
output_names = [x.name for x in session.get_outputs()]
|
| 24 |
input_name = session.get_inputs()[0].name
|
|
|
|
|
|
|
| 25 |
|
| 26 |
ori_image = cv2.imread(args.input_path)
|
| 27 |
h, w = ori_image.shape[:2]
|
|
|
|
| 34 |
|
| 35 |
#image = (image /1.0).astype(np.float32)
|
| 36 |
image = np.transpose(np.expand_dims(np.ascontiguousarray(image), axis=0), (0,3,1,2))
|
|
|
|
|
|
|
| 37 |
|
| 38 |
# Use the model to generate super-resolved images
|
| 39 |
sr = session.run(output_names, {input_name: image})
|