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

Tflite inference model #50

Merged
merged 18 commits into from
Aug 24, 2024
Merged

Tflite inference model #50

merged 18 commits into from
Aug 24, 2024

Conversation

cpmpercussion
Copy link
Owner

@cpmpercussion cpmpercussion commented Aug 23, 2024

closes #48 and #49

not completely convinced that the tflite models out-perform .keras models on predictions but they do on speed.

this changes formalises .keras as a default model type and .tflite as a good alternative for exploration.

haven't completely removed .h5 models as they are good for cross-platform and backwards compatibility.

all inference should now go through MDRNNInferenceModel sub-classes and the PredictiveMusicMDRNN could be renamed as "model builder" or some such as it's only necessary for building training or inference models from scratch.

@coveralls
Copy link

coveralls commented Aug 23, 2024

Pull Request Test Coverage Report for Build 10534629730

Details

  • 169 of 187 (90.37%) changed or added relevant lines in 7 files are covered.
  • 6 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+1.2%) to 82.42%

Changes Missing Coverage Covered Lines Changed/Added Lines %
impsy/tests.py 0 1 0.0%
impsy/mdrnn.py 76 78 97.44%
impsy/interaction.py 19 34 55.88%
Files with Coverage Reduction New Missed Lines %
impsy/tflite_converter.py 6 86.36%
Totals Coverage Status
Change from base Build 10518980577: 1.2%
Covered Lines: 1308
Relevant Lines: 1587

💛 - Coveralls

@cpmpercussion cpmpercussion merged commit ccea960 into main Aug 24, 2024
3 checks passed
@cpmpercussion cpmpercussion deleted the tflite-inference-model branch August 24, 2024 03:59
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.

tflite interpreter for runtime inference
2 participants