-
Notifications
You must be signed in to change notification settings - Fork 470
Description
After failing dismally for some time i started to look at the code, I see that the ImageModel uses only the basename of a path as the entry to the 'file_name' part. In the search for an import it searches for all occurrences of that filename. That indicates that the file_name should be unique with the dataset and that sub path are ignored in that context see (workers/tasks/data.py:211 images.filter(file_name__exact=image_filename).all() ). It also means that import behaviour is undefined within a dataset with existing images and annotations. This should be an easy fix to correct the search behaviour to reflect the subpath within the dataset. And understanding this now, i was able to finish the import process to find that my annotations were applied to all sorts of targets except the image related to the annotation.