Comments (20)
@alexheat, yes, you are right. I had 0.1.44.
Just checked 0.1.45 and it works and looks great!
Thanks for support!
from pylabel.
@mosolab, I need to find another package that can visualize these kinds of annotations. But in the meantime you can use the site that sudheer recomended, https://app.roboflow.com/. You can upload the annotations and images and you will see a visualization for each image like this.
from pylabel.
from pylabel.
you are awesome, thanks!
from pylabel.
Hi @Robotatron I want to look into this. Would you be able to help? Can you share any resources on the Yolo5 segmentation with segmentation samples in other formats like Coco that would make sense to transform into Yolo?
from pylabel.
Hi! Thanks for tool.
I’m interested too and could provide you examples.
Please let me know how to share it.
from pylabel.
from pylabel.
Hi @Robotatron I want to look into this. Would you be able to help? Can you share any resources on the Yolo5 segmentation with segmentation samples in other formats like Coco that would make sense to transform into Yolo?
Sure. Here is an official YOLO5 repo to convert COCO segmentation to YOLO5 format (works with YOLO7 as well) https://github.com/ultralytics/JSON2YOLO/blob/master/general_json2yolo.py
If you'd like to test training a YOLO5 for segmentation it's exactly the same as for object detection but using train.py from their "segment" folder from the repo: https://github.com/ultralytics/yolov5/tree/master/segment
Let me know if there is other information I could help with
from pylabel.
@Robotatron , @mosolab , I have written a proposal for how I will implement the conversion of segmentation conversion. If you have time please take a look and let me know if you have any feedback #72
from pylabel.
I have release version .44 with support for converting Coco segmentation annotations to Yolo segmentation format. You can see a demonstration in this notebook https://github.com/pylabel-project/samples/blob/main/coco2yolosegmentation.ipynb
from pylabel.
Thanks @alexheat for your immediate response and time. I downloaded the latest pylabel 0.1.44 and tried with some Coco segmentation annotations (done in makesense.ai). I got some broken annotations in some images. Attached both actual image and PyLabel generated image.
from pylabel.
Thank you @sudheer-palaparambil , can you explain what you mean by broken images? I do not see what is broken. Do you mean the dotted lines? I don't see how those could have been added by PyLabel because it is only touching the annotations.
Can you provide the steps that you are doing to get those lines and the dataset like you did last time? Also, what tool are you using the rendering the images?
from pylabel.
Hi @alexheat,
I mean that gap in the bottom annotation line.
I executed the following source.
<---------- Beginning
from pylabel import importer
import os
os.makedirs("data", exist_ok=True)
#Specify path to the coco.json file
path_to_annotations = "data/project-22124.json"
#Specify the path to the images (if they are in a different folder than the annotations)
path_to_images = "images/"
#Import the dataset into the pylable schema
dataset = importer.ImportCoco(path_to_annotations, path_to_images=path_to_images, name="Segmentation")
dataset.df.head(5)
dataset.path_to_annotations = "data/yolo"
dataset.export.ExportToYoloV5(segmentation=True)[1]
<----------- End
I copied the labels generated from training\labels folder and uploaded it along with the images to roboflow. The above images are rendered in roboflow. For annotation I used makesense.ai
The first images in the previous mail is rendred when I uploaded images and Coco-JSON generated by makesense.ai
Thank you
from pylabel.
I see it now thank you. Can you share the original annotations as well? I want to investigate what is causing the gap by looking at the actual annotation coordinates
from pylabel.
Herewith attaching the dataset containing original annotations, PyLabel generated annotations and rendered images as well.
Dataset.zip
from pylabel.
@alexheat also on this now. I could convert it but would like also to visualise labelling.
Could converted labelling be visualised with pylabel?
from pylabel.
Thank you @sudheer-palaparambil , I have released v45 that fixes the issue. The issue was an extra space at the end of each line. I am not sure it it really broke the annotations or just the visual on roboflow but the issue is fixed. Thank you for your help to test it.
from pylabel.
@alexheat here is my example. looks like not full connected
from pylabel.
@alexheat, sorry for the delayed response. It is working pefectly now. Thanks, keep the good work.
from pylabel.
Thank you everyone
from pylabel.
Related Issues (20)
- Crash when converting an image from COCO to YOLO that has no annotation in it HOT 1
- AttributeError: 'DataFrame' object has no attribute 'append' HOT 4
- is CreateML json format supported? HOT 5
- Error when i transform a COCO dataset to a YOLO dataset with segmentation = true and cat_id_index = 0 HOT 3
- It's possible to import YOLO segmentation dataset? HOT 2
- Annotation ids in '/content/test/img/coco128.json' are not unique! HOT 1
- StratifiedGroupShuffleSplit results in Empty DataFrame HOT 3
- yolo class label is unsorted HOT 1
- cat_id_index for yolov5 to coco format HOT 1
- how to edit yolo label with imported txt labels ? HOT 1
- UnboundLocalError: local variable 'categories' referenced before assignment HOT 2
- how to split YOLO datasets to train/val. Not train/val/test HOT 1
- Verbosity or progress bar HOT 5
- AssertionError: Output shape does not match input shape. Data loss has occured. HOT 4
- ShowClassSplits returning empty dataframe for YoloV5
- Class categories not correct after conversion from coco to yolo format. HOT 3
- Add tqdm to setup.py HOT 2
- Update Readme examples HOT 1
- Issue using both segmentation=True and cat_id_index=0 HOT 2
- YOLOv5 class index starts from 1 HOT 4
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 pylabel.