Skip to content

coco imports and paths #486

@uwer

Description

@uwer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions