-
Notifications
You must be signed in to change notification settings - Fork 690
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
Add modelAPI related stuff #1219
Add modelAPI related stuff #1219
Conversation
src/anomalib/deploy/export.py
Outdated
tmp_xml_path = Path(Path(xml_file).parent) / "tmp.xml" | ||
serialize(model, str(tmp_xml_path)) | ||
tmp_xml_path.rename(xml_file) | ||
Path(str(tmp_xml_path.parent / tmp_xml_path.stem) + ".bin").unlink() |
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.
can we have have something like this
Path(str(tmp_xml_path.parent / tmp_xml_path.stem) + ".bin").unlink() | |
tmp_xml_path.with_suffix(".bin").unlink() |
src/anomalib/deploy/export.py
Outdated
Path(str(tmp_xml_path.parent / tmp_xml_path.stem) + ".bin").unlink() | ||
|
||
|
||
def _serialize_list(arr): |
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.
would it be possible to annotate the variable and add docstring please
src/anomalib/deploy/export.py
Outdated
tmp_xml_path = Path(Path(xml_file).parent) / "tmp.xml" | ||
serialize(model, str(tmp_xml_path)) | ||
tmp_xml_path.rename(xml_file) | ||
tmp_xml_path.with_suffix(".bin").unlink() |
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.
I think it would be good to add a comment explaining this section
…n/mirror_model_api_changes
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.
thanks, just a single line of change
Co-authored-by: Samet Akcay <[email protected]>
Description