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

Issue with tutorial 4, extracting frames from annotated video clips #292

Closed Bergylta closed 9 months ago

Bergylta commented 9 months ago

🐛 Bug

Seems to be that the extraction of frames from annotated video clips end up in the wrong folder,

To Reproduce (REQUIRED)

Input:

# Get all available frames for the selected species from clips
pp.extract_zoo_frames()

Output:

INFO:root:Retrieving movies that are available locally
INFO:root:All 101 movies are mapped from the server
INFO:root:Running locally so no csv files were downloaded from the server.
ERROR:root:Returning the fpath /mimer/NOBACKUP/groups/snic2021-6-9/project_movies/movies_Koster/30_03_2021/Film_3.mp4
100%|██████████| 3/3 [00:00<00:00,  3.36it/s]
INFO:root:Frames extracted successfully
ERROR:root:Returning the fpath /mimer/NOBACKUP/groups/snic2021-6-9/project_movies/movies_Koster/Soft_bottom_01531008_01532006/01531008-01531016.mp4
100%|██████████| 30/30 [00:09<00:00,  3.26it/s]
INFO:root:Frames extracted successfully

Expected behavior

Expected behaviour would be for the newly extracted frames to end up in tmp_dir instead of the main folder in project movies

Additional context

Not exactly a crisis right now, but a thing to keep an eye on

jannesgg commented 9 months ago

See zooniverse_utils.py 1591

frames_folder = Path(project.movie_folder, temp_frames_folder)