HumanSignal / HumanSignal/label-studio
How to upload image during task creation?
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
I am trying to;
1. Create a Project
2. Create tasks based on the no. of images I have; and UPLOAD IMAGE
3. And, update annotations/predictions for each task
**To Reproduce**
Steps to reproduce the behavior:
```
def create_task_with_yolo_annotations(self, project_id, image_path, yolo_file_path, img_width, img_height):
task = self.ls.tasks.create(project=project_id,
data={"image": image_path})
annotations = yolo_seg_to_labelstudio_results(yolo_file_path, img_width, img_height, {0: "neuron"})
prediction = {
"model_version": "one",
"score": 0.9,
"result": annotations
}
```
**Expected behavior**
I want to be able to upload my images and then assign them to the tasks automatically, using the python sdk.
**Screenshots**

**Environment (please complete the following information):**
- OS: MacOS/Linux
- Label Studio Version [Latest]

Contributor guide
Assessment
This issue has not been assessed yet.