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

Java Error in Notebook 8 when previewing and changing the annotations in a frame in preparation for ML training #394

Open Bergylta opened 2 months ago

Bergylta commented 2 months ago

šŸ› Bug

A clear and concise description of what the bug is.

To Reproduce (REQUIRED)

Input:

pp.get_annotations_viewer(
    output_folder.selected, annotation_classes=mlp.species_of_interest
)

Output:

[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'BBoxModel' from module 'jupyter-bbox-widget'
loadClass@https://album.cloudina.org/user/kso-user/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:74936
loadModelClass@https://album.cloudina.org/user/kso-user/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:10729
_make_model@https://album.cloudina.org/user/kso-user/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:7517
new_model@https://album.cloudina.org/user/kso-user/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:5137
handle_comm_open@https://album.cloudina.org/user/kso-user/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:3894
134/v/this._handleCommOpen@https://album.cloudina.org/user/kso-user/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:73473
_handleCommOpen@https://album.cloudina.org/user/kso-user/static/lab/jlab_core.bca8c55f9011e1fc4717.js?v=bca8c55f9011e1fc4717:1:1242320

Expected behavior

A widget that allows for previewing and changing classification boxes in a annotated frame should show up when running this cell of code after retrieving the image data

Environment

Additional context

jannesgg commented 2 months ago

This issue stems from incompatibility with the latest version of JupyterLab. The widget needs to be replaced or migrated in some way.