ocean-data-factory-sweden / kso

Notebooks to upload/download marine footage, connect to a citizen science project, train machine learning models and publish marine biological observations.
GNU General Public License v3.0
4 stars 12 forks source link

fix: changed clip extractions logic and display ml detections #355

Closed victor-wildlife closed 5 months ago

victor-wildlife commented 5 months ago

Summary:

  1. Changed clip extraction logic

I simplified the way we extract clips as there was a confusion between gpu vs no gpu, example vs non example clips, modified vs non modifed clips and ffmpeg vs python_ffmpeg. The new logic uses the "is_example" argument from the function "create_clips" to generate example or "ready to upload to Zooniverse" clips. We couldn't use ffmpeg with GPU resource in colab anymore so I updated the way we install ffmpeg in colab

  1. Display ml detections

In tut#9, I fixed the approach to plot detections and created a way to download the detections as a csv file with the species detections and confidence values for each species as columns

  1. Organised functions and removed unnecessary ones

While implementing the above updates I deleted functions we no longer use and organised existing functions (group those that are related).

Breakdown by file:

review-notebook-app[bot] commented 5 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

victor-wildlife commented 5 months ago

@jannesgg I cleaned the commits from the previous two branches and combined them into this one. Please share your thoughts when you have the chance