Skip to content

How to use soft label to train or test #13

Open
@MUVGuan

Description

@MUVGuan

@owl-10 Hello, thanks for your great work.
If I want to train MaskAdapter with another dataset where the annotations are not class indices but probabilities or heatmap, for example:
the shape of annotation: [10, 5, 5], 10 is number of classes, 5*5 is the size of image;
annotation[0] =
[0, 0, 150, 100, 0
0, 150, 255, 150, 0
0, 0, 150, 0, 0
0, 0, 0, 0, 0
0, 0, 0, 0, 0]
the range of pixel values in annotation[0] is [0, 255], this example represents the annotation of class 0 for the current image, other classes follow this setting.
Could you please give some guidances about how to change the code? Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions