imglab
imglab copied to clipboard
Exporting data in YOLO format
This feature is suitable for first-timers. But can be picked by any contributor.
Currently imglab supports exporting labelled data in Pascal VOC, COCO format. We want to let users export data in YOLO format as well.
target folder : data formaters
Please check how export feature is implemented for other formats in data formaters
Watch for changes, or Bookmark for easy discovery. Fund this project for new features and maintenance. [Showcase] your project with us by raising an issue
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Hi I am a newcomer and would like to contribute to this project, which would be my first. Has this task been assigned yet?
@JacobMarkBaird1998 Yes you can go ahead with this. Let me know if you need any help.
Thank you, I've been looking for resources to familiarize myself with the YOLO format. I've found resources that say the file extension is just .txt. Does this sound right? I'm using these pages as reference: https://github.com/AlexeyAB/Yolo_mark/issues/60 http://guanghan.info/download/before_conversion.txt http://guanghan.info/download/after_conversion.txt
It looks good. You can generate YOLO file from other tools as well and compare if both are same. https://github.com/tzutalin/labelImg
You can also check this python code for implementation reference: https://github.com/tzutalin/labelImg/blob/master/libs/yolo_io.py
Finally you can import generated file in other image annotation application to test.
Thanks a lot Amit!
Should each image be written to a single YOLO .txt file, such as in writing to COCO, or should only the selected image be written, such as in writing to Pascal VOC?
The image which is currently open should be written in YOLO format. However it'll good if we can ask user to "export current" or "export all".
For this we'll have to redesign export pop up window.
Okay, thank you. This is what I was going with until now.
I am getting this error when trying to call my "yoloFormater.toYOLO()" function defined inside my yolo.js file. Any idea what the issue is, and how I might solve it?
Thanks
I believe you're not including your JS file in index.html
Yes, that was the problem and it is working now. I am just trying to push my branch however I am receiving an error 403 message: Opening repositories: C:\Users\Jacob\Documents\VisualStudioRepos Error encountered while pushing branch to the remote repository: Git failed with a fatal error. unable to access 'https://github.com/NaturalIntelligence/imglab.git/': The requested URL returned error: 403 Pushing to https://github.com/NaturalIntelligence/imglab.git Do you kn ow what is going wrong here?
Have you tested that the generated file is working fine other application too?
You need to fork to submit the PR. You can't directly push in this repository.
Once your PR is successfully merged, you can submit it for the rewards on steemit.com which will be reviewed by utopian. So you need take care of it's tag, and format. Check this submission : https://steemit.com/utopian-io/@alvinvoo/project-update-imglab-new-features
Thank you, Amit. Sorry for the easy questions, I'm just a newbie to GitHub and haven't used it outside of school at all haha
No problem. My main aim of creating issues is to give the chance to new contributors and mentor them. Please check this link: https://github.com/Roshanjossey/first-contributions
This issue is ready to be picked by any contributor. You can check #97 for implementation help and other discussions.
I am getting this error when trying to call my "yoloFormater.toYOLO()" function defined inside my yolo.js file. Any idea what the issue is, and how I might solve it? Thanks
![]()
![]()
Hi @JacobMarkBaird1998
Is dw = 1/image_width and dh = 1/image_height? Also, how do you get shape.bbox.x and shape.bbox.y?
I wanted to convert the float form of x,y,w,h from the yolo format to a format like 240, 240, 100, 150 where (240, 240) are centers of the boxes and (100,150) are the width and the height of the boxes. Thank you!
@kenrubiooo You're trying to open the html file directly in the browser. Try http-server or live-server to run the app locally to test. Check this guide for more detail.