Skip to content
New issue

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

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

Already on GitHub? # to your account

Upload annotations with isbbox=True not working #265

Closed
EtienneDavid opened this issue Oct 13, 2019 · 5 comments · Fixed by #276
Closed

Upload annotations with isbbox=True not working #265

EtienneDavid opened this issue Oct 13, 2019 · 5 comments · Fixed by #276

Comments

@EtienneDavid
Copy link

EtienneDavid commented Oct 13, 2019

Hello,

I'm struggling with the upload of former bbox on the platform.
Everything iis going well, but the property "isbbox"is not loaded. In data.py I add a line to get the property and export it to the database, but when it's on the mongodb, it has lost the property and it's a polygon without isbbox.

The consequence is that I can not move the bbox as a bbox created with the tool, which is problematic for pre-annotation purposes.

I tested it on the stable and latest build.

Do you have any clue on iit ?

Best,

Etienne David

@jsbroks
Copy link
Owner

jsbroks commented Oct 14, 2019

@mubashirhanif any idea?

@mubashirhanif
Copy link
Contributor

mubashirhanif commented Oct 14, 2019

@EtienneDavid I don't understand the problem exactly, may be if you could elaborate a step by step process to reproduce the issue, that might help me pin down the problem.
I tried the current build and it was working as expected. Are you talking about the import function?

@EtienneDavid
Copy link
Author

EtienneDavid commented Oct 17, 2019

Thank for working on the problem.

The minimal example:
Step 1

  • I initiate a new VPS with Ubuntu 18.04
  • clean install of docker with snap + git clone of coco-annotator
  • I launch docker-compose up
  • I create a dataset and annotations
  • Export COCO json

Step 2

  • I initiate a new VPS with Ubuntu 18.04
  • clean install of docker with snap + git clone of coco-annotator
  • I launch docker-compose up
  • I create the same datasrt
  • Import COCO json

The imported annotations are not considered as bbox in coco-annotator, so i cannot move them with the mouse.

How is exported the bbox ? Does it use the isbbox flag @mubashirhanif ?

If yes, there is a problem with imantics as from what i've seen imantics doesn't import isbbox property either @jsbroks . I could add this part to insure compatibility between imantics and coco-annotator so you could recommand imantics as a local format tools to help people formatting their COCO JSON and/or load from other sources.

@jsbroks
Copy link
Owner

jsbroks commented Oct 17, 2019

imantics is not used in any of the import or export processes.

The pr should fix the issue.

If you want to add the functionality to imantics it would be to simply check if the coco format has that flag a creating a BBox object inside of a Segmentation

@EtienneDavid
Copy link
Author

Ok perfect, I've seen the PR, I think I understand better the process. Thank you very much @mubashirhanif !

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

Successfully merging a pull request may close this issue.

3 participants