Open KalindiFonda opened 2 months ago
@jannesgg thoughts on this?
@victor-wildlife @KalindiFonda Indeed, I now encountered the same errors and I believe it is because this part of the code is linked to having an active registry and therefore a set of metadata from which to produce the species_mapping. This means that is does not currently work for local models, since the pt files themselves do not contain the class names. I will try to set up a workaround so that these species names are not required in this special case and then the rest should work as expected.
@KalindiFonda This should now be fixed in the latest dev version. Feel free to test this and let me know if it is now working for you.
Hello @jannesgg and thanks for checking.
Can you check
model = mlp.choose_model(publish=True)
The drop-down is not giving me any options.
Seems like the model_dict
retrieved via zenodo_utils.download_and_extract_models_from_zenodo
in choose_model doesn't return anything.
Also there's an API key that is hard coded, not sure that's intended. https://github.com/ocean-data-factory-sweden/kso/blob/70bfea13e606c45ae6073ad387ed413c87423665/kso_utils/project.py#L1856
(I can also create a new issue)
🐛 Bug
Hello, I am running the Publish_observations.ipynb via the Docker Image. I am running into some issues with this part:
When I run it, if there are annotations in the annotations.csv file it returns "Registry invalid" (https://github.com/ocean-data-factory-sweden/kso/blob/4c1b6daddbfbdf7f8fbd70c80702ac75dbc10520/kso_utils/yolo_utils.py#L2071), and then errors out on the line 2144 because species_mapping was undefined.
And if there were no annotations in the annotations.csv file, it's easy to miss the error among all the other output (but it errors out on the next line, but the error is not entirely clear - i think something along the lines of "columns not found").
Also, is the selecting of folders meant to pick the current folder if there are no actions by the user?
I didn't double check it, but if I did the "restart kernel and run all", then I have to go and set the folders manually (same with the movie selection, but that might be intended?)
Is my assumption that I can run the Publish observations notebook independently of others correct?
Thanks
To Reproduce with annotations:
select movie_4.mp4 with a low confidence threshold (0.2)
Output: