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

Refactor runner.py #830

Merged
merged 15 commits into from
Sep 15, 2023
Merged

Refactor runner.py #830

merged 15 commits into from
Sep 15, 2023

Conversation

michaelpoluektov
Copy link
Contributor

@michaelpoluektov michaelpoluektov commented Sep 5, 2023

TFLMC wasn't added yet because I couldn't manage to get it to work. It would be implemented as another AbstractRunner

params["MAX_ABS_ERROR"] = MAX_ABS_ERROR
params["ABS_AVG_ERROR"] = ABS_AVG_ERROR
params["AVG_ABS_ERROR"] = AVG_ABS_ERROR
params["REQUIRED_OUTPUTS"] = REQUIRED_OUTPUTS
yaml_filename = os.path.join(os.path.dirname(model_path), "params.yaml")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we loading from yaml here?


# some models are special (such as detection_postprocess), they don't have
# a reference int8 TFLite operator and need to be loaded separately
special_path = model_path.parent.joinpath("special.tflite.xc")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems strange as we are not doing it only for detection_postprocess. Is the idea that if there is a special tflite, always load that instead?

@panickal-xmos
Copy link
Collaborator

@michaelpoluektov I like the changes, it looks cleaner. Thanks! :)

@panickal-xmos panickal-xmos merged commit 43de020 into develop Sep 15, 2023
3 checks passed
@panickal-xmos panickal-xmos deleted the hw-testing branch September 15, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants