Abe404 / root_painter

RootPainter: Deep Learning Segmentation of Biological Images with Corrective Annotation
https://nph.onlinelibrary.wiley.com/doi/full/10.1111/nph.18387
Other
59 stars 17 forks source link

Versioning Projects #96

Open Abe404 opened 1 year ago

Abe404 commented 1 year ago

When a user tries to open a multiclass RootPainter project in the single class version of RootPainter they get the following error:

Initialising RootPainter Traceback (most recent call last): File "/home/abe/projects/root_painter/painter/src/main/python/root_painter.py", line 381, in show_open_project_widget self.open_project(file_path) File "/home/abe/projects/root_painter/painter/src/main/python/root_painter.py", line 198, in open_project last_with_annot = last_fname_with_annotations(self.image_fnames, File "/home/abe/projects/root_painter/painter/src/main/python/file_utils.py", line 41, in last_fname_with_annotations val_annot_fnames = os.listdir(str(val_annot_dir)) FileNotFoundError: [Errno 2] No such file or directory: '/home/abe/rp_sync_live/projects/lungs_and_spine/annotations/val' Traceback (most recent call last): File "/home/abe/projects/root_painter/painter/src/main/python/root_painter.py", line 381, in show_open_project_widget self.open_project(file_path) File "/home/abe/projects/root_painter/painter/src/main/python/root_painter.py", line 198, in open_project last_with_annot = last_fname_with_annotations(self.image_fnames, File "/home/abe/projects/root_painter/painter/src/main/python/file_utils.py", line 41, in last_fname_with_annotations val_annot_fnames = os.listdir(str(val_annot_dir)) FileNotFoundError: [Errno 2] No such file or directory: '/home/abe/rp_sync_live/projects/lung_2d_multiclass/annotations/val'

Do we need to think about some type of version system to let users know that the issue is that they need to upgrade?