Skip to content

Commit 6a855db

Browse files
Readme is updated/ minor refactoring
1 parent 546c939 commit 6a855db

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

examples/models/yolo12/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ This example demonstrates how to perform inference of [Ultralytics YOLO12 family
1313
# Performance Evaluation
1414

1515
| CPU | Model | Backend | Device | Precision | Average Latency, ms |
16-
|--------------------------------|---------|----------|--------|-----------|-----------------|
17-
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | openvino | CPU | FP32 | 88.3549 |
18-
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | openvino | CPU | INT8 | 53.066 |
19-
| Intel(R) Core(TM) Ultra 7 155H | yolo12l | openvino | CPU | FP32 | 317.953 |
20-
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | openvino | CPU | INT8 | 150.846 |
21-
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | xnnpack | CPU | FP32 | 169.36 |
22-
| Intel(R) Core(TM) Ultra 7 155H | yolo12l | xnnpack | CPU | FP32 | 436.876 |
16+
|--------------------------------|---------|----------|--------|-----------|---------------------|
17+
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | openvino | CPU | FP32 | 88.3549 |
18+
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | openvino | CPU | INT8 | 53.066 |
19+
| Intel(R) Core(TM) Ultra 7 155H | yolo12l | openvino | CPU | FP32 | 317.953 |
20+
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | openvino | CPU | INT8 | 150.846 |
21+
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | openvino | GPU | FP32 | 32.71 |
22+
| Intel(R) Core(TM) Ultra 7 155H | yolo12l | openvino | GPU | FP32 | 70.885 |
23+
| Intel(R) Core(TM) Ultra 7 155H | yolo12s | xnnpack | CPU | FP32 | 169.36 |
24+
| Intel(R) Core(TM) Ultra 7 155H | yolo12l | xnnpack | CPU | FP32 | 436.876 |
2325

2426

2527
# Instructions
@@ -63,6 +65,7 @@ XNNPACK:
6365
python export_and_validate.py --model_name yolo12s --input_dims=[1920,1080] --backend xnnpack
6466
```
6567

68+
> **_NOTE:_** Quantization for XNNPACK backend is WIP. Please refere to https://github.com/pytorch/executorch/issues/11523 for more details.
6669
6770
Exported model could be validated using the `--validate` key:
6871

examples/models/yolo12/export_and_validate.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ def __len__(self):
6868
return len(self._iter)
6969

7070

71-
def visualize_fx_model(model: torch.fx.GraphModule, output_svg_path: str):
72-
g = FxGraphDrawer(model, output_svg_path)
73-
g.get_dot_graph().write_svg(output_svg_path)
74-
75-
7671
def lower_to_openvino(
7772
aten_dialect: ExportedProgram,
7873
example_args: Tuple[Any, ...],
@@ -110,7 +105,6 @@ def ext_transform_fn(sample):
110105
fold_quantize=False,
111106
)
112107

113-
visualize_fx_model(quantized_model, "tmp_quantized_model.svg")
114108
aten_dialect = torch.export.export(quantized_model, example_args)
115109
# Convert to edge dialect and lower the module to the backend with a custom partitioner
116110
compile_spec = [CompileSpec("device", device.encode())]

0 commit comments

Comments
 (0)