-
Notifications
You must be signed in to change notification settings - Fork 16
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
LabelBOT #1012
base: master
Are you sure you want to change the base?
Conversation
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.
Please don't implement all the logic as helper methods. Since the logic is used only in the single controller (for now), implement it as (protected) controller methods there.
Also please us camelCase for variable names.
Finally, please fix the failing checks (except the test-current check which fails because biigle/largo is not there). The lint checks can be run locally with composer lint
and composer fix
.
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.
Just minor comments left now. We have to make sure that we get the exact queries here. Maybe you can dump the two queries as I explained below and post them here for comparison?
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.
Looks fine so far (ignoring the missing TODOs). Please go ahead 😉
okay, thanks. |
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.
Where do I get the model file, i.e. which did you use? This should be mentioned in the config file (see below).
I will review the UI once it is implemented according to the mockup in #988. If you want feedback before that, we should meet and you can show me what you currently have.
We also need a migration file for the HNSW index. Maybe this migration could also implement a progress bar that shows the progress of the index creation? This also has to be mentioned in the upgrade instructions of the release. We should prepare a text for that. See here for an example of upgrade instructions.
| Path to the ONNX file for the DINOv2 ViT-S/14 (384) model, used to generate | ||
| the feature vector for LabelBOT vector search. | ||
*/ | ||
'onnx_file' => 'assets/dinov2_vits14.onnx' |
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.
Add a URL where to get the file. We also need to mention this (i.e. admins have to put the model manually somewhere) in the upgrade notes of the new BIIGLE version.
A note about the model file. We can release the code to generate the ONNX in this repository. The actual ONNX file can be published as a release asset. The DINOv2 model weights were released under an Apache-2.0 license. We have to add the license reference and link to the original model file to the respective BIIGLE release. Example text:
|
TODO
Backend
store
method inImageAnnotationController
requires alabel_id
in the request, but when LabelBOT is active, a request with a feature vector should be accepted without label_id.Frontend