Skip to content

Training on dataset which also contain images without annotations gives error. #14

@teurving

Description

@teurving

I'm trying to train the key point RCNN model on a dataset containing images which sometime contain annotations, but also sometime doesn't contain annotations. The annotation file then looks like: {'bboxes':[], 'keypoints':[]}. This gives the error "too many indices for tensor of dimension 1" while trying to calculate the target["area"]. How can I make this code also work for images without annotations?

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