GithubHelp home page GithubHelp logo

Comments (8)

pcicales avatar pcicales commented on July 24, 2024 2

Hello @XiaLiPKU sorry for the late reply, I wanted to make sure I wasnt making a mistake. The issue has nothing to do with how your json files are formatted (although there were some key differences that I had to change in order to match their requirements exactly, without deleting the extra entries). If anyone is interested, here is the thread response where I outline my solution, and what is likely the cause of the problem, which is rooted in a pytorch bug that has persisted for several releases. Thank you for your responsiveness and help!

from bdd100k.

XiaLiPKU avatar XiaLiPKU commented on July 24, 2024

Sorry, the doc here really lack something.
The correct command is here:
python3 -m bdd100k.label.to_coco -m ins_seg|seg_track --only-mask -i ${mask_base} -o ${out_path}
As you only feed bitmasks as the input, the --only-mask is required.

from bdd100k.

XiaLiPKU avatar XiaLiPKU commented on July 24, 2024

The issue I am having with this annotation set is that it appears to be causing issues in my other code (which I believe is due to the scalabel content)

Can you paste the error report here?

from bdd100k.

XiaLiPKU avatar XiaLiPKU commented on July 24, 2024

More to say. If you want to generate coco with mask in polygon format instead of RLE, you can add --mask-mode polygon to the command line

from bdd100k.

pcicales avatar pcicales commented on July 24, 2024

Here is a link to the thread I am posting on regarding this isssue.

I am also running your solution now to see if it solves things.

from bdd100k.

pcicales avatar pcicales commented on July 24, 2024

Hi @XiaLiPKU , going through the json files and comparing to the coco formatting guidelines, I am having trouble understanding a few of the elements saved after running the to_coco script correctly. For example, it seems that type and video are not compatible with coco. Perhaps I am misunderstanding something, as I thought that these elements were retrieved using these keys (making it to where extra keys are not a problem). But I continue to have issues loading the data with pytorch assuming the data is formatted following the coco guidelines. Have you encountered this before?

from bdd100k.

XiaLiPKU avatar XiaLiPKU commented on July 24, 2024

Indeed, we add some extra elements, and they are used for tracking problems (box_track & seg_track).
However, given my experience, these fields will not influence your usage of MMDet.

For the error reports, can you paste them here? Or you can upload the converted json files.

from bdd100k.

guifentian avatar guifentian commented on July 24, 2024

More to say. If you want to generate coco with mask in polygon format instead of RLE, you can add --mask-mode polygon to the command line

@XiaLiPKU
I am trying to convert to polygon format using --mask-mode polygon as you suggested. but it was not recognized.

error: unrecognized arguments: --mask-mode polygon

how to do that?

from bdd100k.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.