Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task creation with raw cloud storage 2d images and related images doesn't work #9071

Open
2 tasks done
zhiltsov-max opened this issue Feb 6, 2025 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Feb 6, 2025

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

  1. 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.

  1. Add this bucket into CVAT
  2. 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.

sample_data.zip

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.

Environment

@zhiltsov-max zhiltsov-max added the bug Something isn't working label Feb 6, 2025
@Marishka17
Copy link
Contributor

Duplicates #5954

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants