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

Add to ONNXInferenceModel human-readable model description #368

Closed
zaleslaw opened this issue May 18, 2022 · 0 comments
Closed

Add to ONNXInferenceModel human-readable model description #368

zaleslaw opened this issue May 18, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@zaleslaw
Copy link
Collaborator

The existing toString method just prints some underlying information from the ONNX Java API.

We need to unify the input/output information with the TF module and also add info from modelHub if possible and about the specific type

@zaleslaw zaleslaw added the enhancement New feature or request label May 18, 2022
@zaleslaw zaleslaw added this to the 0.5 milestone May 20, 2022
@ermolenkodev ermolenkodev self-assigned this Oct 20, 2022
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Oct 26, 2022
…lin#368)

* Add interface ModelSummary

* Add OnnxModelSummary
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Oct 26, 2022
…lin#368)

* GraphTrainableModel summary implements common ModelSummary interface

* TrainableModel, OnnxInferenceModel and All models from ModelHub implement ModelWithSummary interface

* ModelHub models now reveive corresponding ModelType as parameter and this info available in summary
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Oct 26, 2022
* Add Kdocs for public interfaces and methods

* Rename specificType -> type in base classes

* Fix formatting
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Oct 26, 2022
* Add test for OnnxModelSummary

* Add summary logging to examples
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Oct 26, 2022
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 8, 2022
…lin#368)

* Add interface ModelSummary

* Add OnnxModelSummary
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 8, 2022
…lin#368)

* GraphTrainableModel summary implements common ModelSummary interface

* TrainableModel, OnnxInferenceModel and All models from ModelHub implement ModelWithSummary interface

* ModelHub models now reveive corresponding ModelType as parameter and this info available in summary
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 8, 2022
* Add Kdocs for public interfaces and methods

* Rename specificType -> type in base classes

* Fix formatting
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 8, 2022
* Add test for OnnxModelSummary

* Add summary logging to examples
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 8, 2022
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 8, 2022
* Get rid of code duplication in OnnxModelSummary and TfModelSummary

* Introduce  table Section interface

* Split table creation process and pretty-printing process
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 8, 2022
Replace ModelType with String in OnnxHighLevelModel and ImageRecognitionModelBase.

This will allow users with custom models use this property as well.
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 8, 2022
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 9, 2022
* Introduce Cell to simplify complex TableRow creation

* Refactoring alignment of section to not modify internal of Section model

* Minor fixes
ermolenkodev added a commit to ermolenkodev/KotlinDL that referenced this issue Nov 14, 2022
* Introduce Cell to simplify complex TableRow creation

* Refactoring alignment of section to not modify internal of Section model

* Minor fixes

Co-authored-by: Julia Beliaeva <[email protected]>
ermolenkodev added a commit that referenced this issue Nov 15, 2022
* Add common ModelSummary interface for TensorFlow and onnx models (#368)

* Add interface ModelSummary

* Add OnnxModelSummary

* Refactor summary functionality to use the new ModelSummary interface (#368)

* GraphTrainableModel summary implements common ModelSummary interface

* TrainableModel, OnnxInferenceModel, and All models from ModelHub implement the ModelWithSummary interface

* ModelHub models now receive the corresponding ModelType as a parameter, and this info available in summary

* Add missing KDocs (#368)

* Add Kdocs for public interfaces and methods

* Rename specificType -> type in base classes

* Fix formatting

* Update tests and examples (#368)

* Add test for OnnxModelSummary

* Add summary logging to examples

* Minor cleanup (#368)

* Refactor summary formatting (#368)

* Get rid of code duplication in OnnxModelSummary and TfModelSummary

* Introduce  table Section interface

* Split table creation process and pretty-printing process

* Change modelType field type (#368)

Replace ModelType with String in OnnxHighLevelModel and ImageRecognitionModelBase.

This will allow users with custom models to use this property as well.

* Add passing modelKindDescription to the copy functions (#368)

* Refactoring of formatting (#368)

* Introduce Cell to simplify complex TableRow creation

* Refactor alignment of the section not to modify the internals of the Section model

* Minor fixes

Co-authored-by: Julia Beliaeva <[email protected]>
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

No branches or pull requests

2 participants