Skip to content

"Error: Please make sure all you images and ground truth masks are in jpg and png format respectively !!!" #144

@CabbageWust

Description

@CabbageWust

Why '.png' is necessaary for label ? When I change the 'name_im_gt_list[0]["gt_ext"] = ".png" ' to ' name_im_gt_list[0]["gt_ext"] = ".jpg" ', an error occurred that "RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0". Then I check my custom trainset with cv2.imread() and all shapes are [3000, 2000, 3] for image and [3000, 2000, 1] for gt, there is no image with shape[3000, 2000, 4]

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