Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A rough prototype for an API which returns embeddings and classification from a choice of endpoints, each for a different model.
See #52 for notes on the thinking around adding this to one or more pipelines. Definitely an unsophisticated prototype, reusing existing functions plus small parts of https://github.com/alan-turing-institute/ViT-LASNet
To test
Note this assumes that the model weights for the new Turing models #45 are not available where the test is running!
Run the API and send it an image URL, get back embeddings
To run with the Resnet18 weights, see this note https://github.com/alan-turing-institute/ViT-LASNet/tree/main/test and the linked issue here alan-turing-institute/ViT-LASNet#2 - for now a manual stage of downloading them from Google Drive and copying into
./data/weights
- option is to package this as a container