Comments (2)
Hi @JaviMota, can you help provide us with more information to help reproduce the issue? A label config, sample data, and steps to reproduce would help us determine if it's a bug.
from label-studio.
Hi
This is the code Im using:
LABEL_STUDIO_URL = os.getenv('LABEL_STUDIO_URL', default='http://virt-entw02.xxx.net:8080')
API_KEY = "xxx"
PROJECT_ID = 6
// connect to Label Studio
ls = Client(url=LABEL_STUDIO_URL, api_key=API_KEY)
ls.check_connection()
// get existing project
project = ls.get_project(PROJECT_ID)
filters=Filters.create(Filters.OR, [Filters.item(Column.annotations_results, Operator.CONTAINS, Type.String, Filters.value("Person"))])
tasks = project.get_tasks(filters=filters)
id_filtered_list = [d["id"] for d in tasks]
project.export_tasks(export_type="YOLO", download_all_tasks=False, download_resources=True, ids=id_filtered_list, export_location="~/label_studio_sdk/export_data")
This is the label configuration:
<View>
<Image name="image" value="$image" zoom="true"/>
<Header value="RectangleLabels"/>
<RectangleLabels name="label" toName="image">
<Label value="Person" background="#FFA39E"/><Label value="Car" background="#729fcf"/><Label value="Bus" background="#8ae234"/><Label value="Truck" background="#a40000"/><Label value="Motorcycle" background="#e9b96e"/><Label value="Bicycle" background="#ad7fa8"/></RectangleLabels>
</View>
The idea is to filter the images containing a label and download the images and the labels. It would be also nice to be able to download a single label info even if we have multiple labels in the dataset.
Thank you.
from label-studio.
Related Issues (20)
- heroku integration failing because of outdate version of postgresql (13)
- My COCO dataset JSON file contains empty list of segmentations...
- Brush Mask for semantic segmentation Export to COCO HOT 4
- Ellipse Annotations Missing After Export and Training HOT 1
- UI for recording audio dataset
- Large file import error HOT 2
- Bounding boxes are off center on import (custom implementation) + a script and work flow that works for me that I would like to share HOT 1
- Videos in AWS do not load in Google Chrome or Microsoft Edge HOT 1
- Button "start training" sent event "PROJECT_UPDATED" rather than "START_TRAINING" to ml backend HOT 5
- PASCAL VOC XML is incorrect for OBB labels HOT 2
- duplicate key value violates unique constraint "io_storages_localfilesexportstoragelink_annotation_id_key" DETAIL: Key (annotation_id)=(25) already exists.
- Bounding boxes displaced in the image. HOT 1
- 'dict' object has no attribute 'decode' HOT 1
- Can load images from local storage, but not videos HOT 2
- Enhanced Crosshair Cursor for Labelling HOT 2
- Database env vars are not read HOT 4
- Candlesticks for financial time series annotation
- Import example pre annotation data do not import label
- Can't annotate with docker: $undefined$ value
- file filtere regex parse is error HOT 1
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 label-studio.