-
Notifications
You must be signed in to change notification settings - Fork 10
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
Refactor runner.py #830
Conversation
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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?
@michaelpoluektov I like the changes, it looks cleaner. Thanks! :) |
TFLMC wasn't added yet because I couldn't manage to get it to work. It would be implemented as another AbstractRunner