DeepLabCut / napari-deeplabcut

a napari plugin for labeling and refining keypoint data within DeepLabCut projects
GNU Lesser General Public License v3.0
51 stars 22 forks source link

Improve error message for when file name in the output h5 file does not match the folder directory #109

Closed swan683 closed 4 months ago

swan683 commented 8 months ago

I had labelled some images using Napari under a particular folder. I then saved the file but renamed the folder another day to distinguish my progress. However, when I tried to open the folder again on Napari, none of the labels showed up. After a long time debugging, it was found that it was because the output h5 file stored the original folder name so that when I renamed the folder, it could no longer find the images. This is unintuitive as the images and h5 files are stored in the same folder and it was assumed that everything should have just been called from the current directory. The error message that popped up was:

ValueError: cannot callvectorizeon size 0 inputs unlessotypesis set

It would be more clear if the error message could be:

Directory not found

I am using napari-deeplab v0.2.0 on windows with python 3.9.