Comments (2)
Thank you for sharing your insights and the use of the global_json2yolo.py script. It's great to see the different flags and options for converting COCO format to YOLO format.
Regarding your request for an output directory, it seems that the script currently does not have an explicit option to specify an output directory. If you need to save the converted YOLO files to a specific directory, you can modify the script to include this functionality. You can achieve this by adding a parameter to the convert_coco_json function to specify the output directory, then adjust the code to save the YOLO files to that directory.
Feel free to let me know if you need further assistance or guidance on how to implement this. We're always here to help.
from json2yolo.
Thanks for writing the issue.
We check it works using this script global_json2yolo.py.
Looking at the global_json2yolo code, there are some flags.
Converting the COCO bbox format to YOLO bbox format.
use_segments=False,
use_keypoints=False,
Converting the COCO segmentation format to YOLO segmentation format.
use_segments=True,
use_keypoints=False,
Converting the COCO keypoints format to YOLO keypoints format.
use_segments=False,
use_keypoints=True,
To convert the COCO segmentation format to YOLO segmentation format.
if __name__ == '__main__':
source = 'COCO'
if source == 'COCO':
convert_coco_json('../datasets/coco/annotations', # directory with *.json
use_segments=True,
use_keypoints=False,
cls91to80=False)
This is the folder structure when we run the script.
Please let us know your opinion.
from json2yolo.
Related Issues (20)
- Convert coco segment to yolo segment HOT 15
- No Output HOT 10
- Multi-class labeling HOT 1
- merge_multi_segment HOT 2
- There are absolutely no explanations on how to run the code or what parameters one should use HOT 5
- Code is running but the results are not are not saved HOT 8
- TypeError: string indices must be integers HOT 5
- Segmentation Data Normalization for TrashCan Dataset HOT 2
- Labelme2Yolo ? HOT 5
- No .yaml file? HOT 3
- Converting fsco-dataset .json format into yolov8 acceptance format HOT 1
- How to convert files annotated with linestrip in labelme to yolo HOT 7
- coco2yolo error
- A tutorial or some examples? HOT 3
- Issue with saving txt file HOT 1
- May be this is a bug in save folder file names in txt files. HOT 3
- KeyError: 'iscrowd' HOT 1
- test2 HOT 1
- Explanation of results HOT 1
- Converting EXLPose Dataset Annotations to Yolo8-pose HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json2yolo.