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

Make it easy to update models to latest version #4

Open
robertknight opened this issue Jan 3, 2024 · 1 comment
Open

Make it easy to update models to latest version #4

robertknight opened this issue Jan 3, 2024 · 1 comment
Labels
CLI ocrs CLI tool

Comments

@robertknight
Copy link
Owner

robertknight commented Jan 3, 2024

ocrs-cli will automatically download models on first run. It would be useful if it could automatically download updated models when they become available.

Some considerations and constraints:

  • There should be a way to prevent this. Some users might want the tool to never download anything, or might want to be in control of when model updates happen
  • There should be a fallback to the existing models if the download fails
  • There needs to be a way of displaying a human readable description of the current/available model versions. See also RTen models should have provenance metadata rten#20.
  • There is a trade-off between binary size / compile time and flexibility to allow model updates to use new operators. ocrs as a native library currently loads models with the default operator registry which supports all operators. However the WebAssembly API reduces binary size by using a custom operator registry with only the required ops enabled. We might want to do the same thing with the native API in future too.
@robertknight robertknight mentioned this issue Jan 7, 2024
6 tasks
@robertknight
Copy link
Owner Author

Re-reading this issue I think it should work more like a package update, where the tool might notify the user about model updates, but not download them unless specifically requested (eg. with something like ocrs --update).

@robertknight robertknight added the CLI ocrs CLI tool label Jan 8, 2024
@robertknight robertknight changed the title Model auto-update Make it easy to update models to latest version Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI ocrs CLI tool
Projects
None yet
Development

No branches or pull requests

1 participant