Open
Description
Actions before raising this issue
- I searched the existing issues and did not find anything similar.
- I read/searched the docs
Steps to Reproduce
- Upload a dataset like this:
.
├── 1.jpg
├── 2.jpg
├── 3.jpg
├── 4.jpg
├── 5.jpg
├── 6.jpg
├── 7.jpg
├── 8.jpg
└── related_images
├── 1_jpg
│ ├── image_0.png
│ ├── image_1.png
│ └── image_2.png
├── 2_jpg
│ ├── image_2.png
│ ├── image_3.png
│ └── image_4.png
└── 3_jpg
├── image_2.png
├── image_3.png
└── image_4.png
into a cloud storage bucket.
- Add this bucket into CVAT
- Create a task using the following configuration:
from pathlib import Path
from cvat_sdk import make_client, models
from cvat_sdk.core.proxies.tasks import ResourceType
with make_client("http://localhost", port=8080, credentials=("user", "pass")) as client:
task = client.tasks.create_from_data(
spec=models.TaskWriteRequest(
name="image task with cs and related images",
labels=[{"name": "cat"}],
),
resources=[
"prefix/1.jpg",
"prefix/2.jpg",
"prefix/3.jpg",
"prefix/4.jpg",
"prefix/5.jpg",
"prefix/6.jpg",
"prefix/7.jpg",
"prefix/8.jpg",
"prefix/related_images/1_jpg/image_0.png",
"prefix/related_images/1_jpg/image_1.png",
"prefix/related_images/1_jpg/image_2.png",
"prefix/related_images/2_jpg/image_2.png",
"prefix/related_images/2_jpg/image_3.png",
"prefix/related_images/2_jpg/image_4.png",
"prefix/related_images/3_jpg/image_2.png",
"prefix/related_images/3_jpg/image_3.png",
"prefix/related_images/3_jpg/image_4.png",
],
resource_type=ResourceType.SHARE,
data_params=dict(
cloud_storage_id=your_cs_id,
image_quality=70,
),
)
After launching, no related images will be used in the task.
Expected Behavior
The task is created using related images or an explanatory message is accessible somewhere.
Possible Solution
No response
Context
If the task is created with images in an archive (instead of than just files), the related images will be used.