Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Resolves] Support ingesting a digest model report/cache #3

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

pcolange
Copy link
Collaborator

@pcolange pcolange commented Dec 6, 2024

Closes #2

- Offers solution for steps 1-3
@pcolange pcolange self-assigned this Dec 6, 2024
Philip Colangelo added 8 commits December 9, 2024 16:48
- added steps 4-6
- robust pixmap handling
- better pixmap quality
- copy png instead of grab()
- scale loading gif
- multimodel report support
- recompiled gui with pyside6.8.1
- various quality updates to gui
@pcolange pcolange added the enhancement New feature or request label Dec 12, 2024
@pcolange pcolange marked this pull request as ready for review December 12, 2024 23:35
@pcolange
Copy link
Collaborator Author

pcolange commented Dec 12, 2024

TODO: add a check for duplicate YAML reports in the multi model analysis tool. Done in commit 03af35c

Copy link
Collaborator

@danielholanda danielholanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested locally.
Worked like a charm.

@@ -1,17 +1,22 @@
# Copyright(C) 2024 Advanced Micro Devices, Inc. All rights reserved.

"""Unit tests for Vitis ONNX Model Analyzer """

import os
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts on adding those reports as workflows in the future so this can run on CI?

Report created on June 02, 2024
ONNX file: resnet18.onnx
Report created on December 06, 2024
ONNX file: C:\Users\pcolange\Projects\digestai\test\resnet18.onnx
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like your personal paths are getting into the code here. Is that intended/avoidable?

@@ -81,7 +81,6 @@ enable =
expression-not-assigned,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to add some documentation on this new feature. I don't see any.

huggingface: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woohoo! Love it.

Comment on lines +139 to +146
def parse_model_nodes(self) -> None:
"""There are no model nodes to parse"""

def save_yaml_report(self, filepath: str) -> None:
"""Report models are not intended to be saved"""

def save_text_report(self, filepath: str) -> None:
"""Report models are not intended to be saved"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit weird to see those here without a "pass", but I guess the docstrings work

Comment on lines +234 to +236
# print("Differences found:")
# for diff in differences:
# print(f"- {diff}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# print("Differences found:")
# for diff in differences:
# print(f"- {diff}")

# print(f"- {diff}")
return False
else:
# print("No differences found.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# print("No differences found.")

Comment on lines +125 to +128
print(
"Found the following non-static input dims in your model. "
"It is recommended to make all dims static before generating reports."
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most users will never see this as this is printed to the terminal instead of showing up in the GUI. Is that ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ingesting a digest model report/cache
2 participants