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

how to add this MosaicOS function in Detectron2 #2

Closed
hattergjj opened this issue Aug 1, 2022 · 4 comments
Closed

how to add this MosaicOS function in Detectron2 #2

hattergjj opened this issue Aug 1, 2022 · 4 comments

Comments

@hattergjj
Copy link

Hi
i saw in the README.md, this is a desctiption of Pre-trained models. in this part, it says,"our implementations is based on Detectron2". does this mean, this in a new Mosaic function has added in Detectron2 ? or just a off-line data augmentation used by mosaic, then using into detectron2.
thanks in advance , if someone anwsers

@czhang0528
Copy link
Owner

czhang0528 commented Aug 1, 2022

Hello, the new Mosaic is separated from Detectron2. The current script in this repo is done offline. You have to prepare the augmented data and annotations (i.e., bounding boxes) similar to the original COCO images.

You may also directly plug the current script into the dataloader of Detectron2 to make it online --- each time sampling N (e.g., 4) images and mosaicking --- which gives similar performance but slows down the training.

@hattergjj
Copy link
Author

@czhang0528 Thank you for you anwers.
when i try to do this Mosaic function in my data. it shows an emply list "segmentation":[] in output annotations.json file. i am a bit confused. Does this not allow mosaic function using in instance segmentation? but there are descriptions of pre-training model for instance segmentation in the README.md

@czhang0528
Copy link
Owner

I see your point. MosaicOS in this work only considers bounding box annotations. That is, we leave "segmentation" empty when preparing the annotations. No mask (e.g., polygon or RLE for COCO) conversion script is provided in the repo.

We mosaic object-centric images and use them (only with box labels) to improve instance segmentation. Please be referred to Section 6.4 of the main paper and Section G.2 of the supplementary material.

@hattergjj
Copy link
Author

@czhang0528 thanks a lot! and thank you for your team have done this awsome work!

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