Skip to content

How can i train mask-r-cnn model with different annotations structure? #2

Description

@ddm06

Hi, I'm a data science student and I'm trying to build a mask-r-cnn model.

The annotations have been provided to me with this excel structure:
Name,
Class,
Polygon coordinates,
Region_count (nth polygon in the same image).

I've converted this xlsx to csv to json. This is the json output:
[ { "Name": "foto_1jpg.jpg", "Class": "tennis", "Region_count": "1", "Polygon Cordinates": "\"all_points_x\":[154,157,230,275,278,218,160,112,113,154],\"all_points_y\":[461,461,455,495,576,625,625,563,505,463]" }, { "Name": "foto_1jpg.jpg", "Class": "soccer", "Region_count": "2", "Polygon Cordinates": "\"all_points_x\":[446,557,685,795,826,815,738,628,505,422,346,331,354,443],\"all_points_y\":[230,186,212,321,411,538,641,687,684,632,525,426,331,224]" }, { "Name": "foto_2jpg.jpg", "Class": "soccer", "Region_count": "1", "Polygon Cordinates": "all_points_x:[331,403,518,626,688,734,758,681,594,484,369,314,282,274,329],\"all_points_y\":[399,340,316,342,380,463,607,736,787,796,745,683,592,503,405]" }]
After this I've tried to train mask-r-cnn with this json, but my tries are failed.

How can I adapt my json file to a VIA json file structure ?Or it is better to adapt the python code to my json format ? Thanks for the attention.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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