Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

clarifying directory structure and fixing typo #448

Merged
merged 1 commit into from
Feb 18, 2019

Conversation

botcs
Copy link
Contributor

@botcs botcs commented Feb 17, 2019

A few addition:
I added the top level directory cityscapes since the tools/cityscapes/convert_cityscapes_to_coco.py script has the directory structure gtFine_trainvaltest/gtFine hardcoded into it which is fine but was not clear at first.

Also added a Note to warn people to install detectron as well, since the script uses detectron.utils.boxes and detectron.utils.segm modules which has further dependencies in the detectron lib.

A few addition:
I added the top level directory `cityscapes` since the `tools/cityscapes/convert_cityscapes_to_coco.py` script has the directory structure `gtFine_trainvaltest/gtFine` hardcoded into it which is fine but was not clear at first.

Also added a **Note** to warn people to install detectron as well, since the script uses `detectron.utils.boxes` and `detectron.utils.segm` modules which has further dependencies in the detectron lib.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 17, 2019
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Contributor

@fmassa fmassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

This looks good, thanks!

I'm merging this, but I'd also love to remove the dependency on Detectron in this file, as it's a fairly simple function and could be taken from detectron without much problems.

```
3. Run the below commands to convert the annotations
**NOTE: Detectron AND maskrcnn_benchmark is required**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds good to me, but from a glance at the implementation, it is really easy to get rid of the dependency on Detectron.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lazily I have copied boxes.py and segms.py from detectron to the maskrcnn utils, but then I saw that in boxes there was another level of dependency - and I got like "meh... just quickly install detectron", but then I had to resolve the caffe2 stuff :D so yeah... what would you suggest?

I can trace all the functions back in the detectron lib and copy them together to the maskrcnn lib or follow along #447

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should follow what I've mentioned in #447. There is really only one function that needs to be ported from Detectron, the other is already in this repo. Let me know if you have further questions!

@fmassa fmassa merged commit f2b9a9a into facebookresearch:master Feb 18, 2019
@botcs botcs deleted the patch-1 branch April 1, 2019 12:36
Lyears pushed a commit to Lyears/maskrcnn-benchmark that referenced this pull request Jun 28, 2020
A few addition:
I added the top level directory `cityscapes` since the `tools/cityscapes/convert_cityscapes_to_coco.py` script has the directory structure `gtFine_trainvaltest/gtFine` hardcoded into it which is fine but was not clear at first.

Also added a **Note** to warn people to install detectron as well, since the script uses `detectron.utils.boxes` and `detectron.utils.segm` modules which has further dependencies in the detectron lib.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants