Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greetings form London #1

Open
AlbertoMCS opened this issue Mar 21, 2019 · 5 comments
Open

Greetings form London #1

AlbertoMCS opened this issue Mar 21, 2019 · 5 comments

Comments

@AlbertoMCS
Copy link

Hi,
I want to train a Mask RCNN network pre-trained with COCO dataset (https://github.com/matterport/Mask_RCNN) with Mapillary dataset, I saw you were doing this for the challenge some months ago. Just for curiosity, did you finally succeed in such conversion with the code in your repository?.

Thanks

@Luodian
Copy link
Owner

Luodian commented Mar 22, 2019

Ye, we use the converted datasets and fair/Detectron(as codebase) to train our models. Actually I think you use a model pre-trained on COCO and then finetune it to Mapillary, that will be helpful in accuracy according to our experiments.
I am not sure this conversion is a bug-free version. I guess it was, but if u meet anything you can ask me directly. It's wonderful to meet a new friend in London who's researching CV.
More, I also converted Apollo, CityScapes, Kitti to COCO format. So if you have more questions~I will be happy to help with.

@AlbertoMCS
Copy link
Author

AlbertoMCS commented Mar 24, 2019 via email

@Luodian
Copy link
Owner

Luodian commented Mar 25, 2019

@AlbertoMCS
Since I already deleted the original MVD dataset and I'm kinda busy recently. I may provide a quick guide for you to implement.

  1. SplitTools
    You should first run SplitTools.py, this script is to read images from Mapillary dataset and split each image into multiple instance images in black/white representation. Remember to place MVD dataset in the same root path.
  2. Images2Json
    This folder is to transform former generated instance images into JSON annotation in COCO format.
    Remember to align this path IMAGE_DIR = os.path.join(ROOT_DIR, "shapes_train2018") correctly.

So it's 2 steps in general.
First, convert original MVD into multiple instance images.

MVD instance image use one instance.png contains all objects, and we should split them into different images that one only contains one object.

Second, convert generated instance images into JSON annotations since it's used in COCO format.

@AlbertoMCS
Copy link
Author

AlbertoMCS commented Mar 25, 2019 via email

@Luodian
Copy link
Owner

Luodian commented Mar 27, 2019

@AlbertoMCS It's truly time-consuming, I recommend you to use multitasks to parallelly run the first split step. As for VM? did it mean cloud server? I've tried both google cloud platform and AWS. If you are still a student, you can get some free credits to use them for a while. GCP is better in user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants