-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[sdk] client.tasks.create_from_data does not support relative path to cloud storage for AWS S3 bucket #7533
Comments
Hello, First of all, I would recommend you to upgrade CVAT. Also, be sure you did mount |
@dpovision , we don't have a reply from you. Please upgrade CVAT and re-open the issue if you still have the problem. Don't hesitate to post your solution or send us a pull request. |
@bsekachev @nmanovic Thanks a lot and sorry for the late response. I finally got it worked. It was tough and I had to dig for some posts like https://opencv.github.io/cvat/docs/administration/basics/installation/#share-path, https://opencv.github.io/cvat/docs/administration/advanced/mounting_cloud_storages/, https://serverfault.com/questions/441691/how-to-make-s3fs-work-with-iam-roles but in the end it works so far.
Extract from cvat server docker log, when adding
Do you have any idea what I can do here? I tried many options, like |
Actions before raising this issue
Steps to Reproduce
My goal is to automatize the creation of tasks with AWS S3 cloud storage via the Python SDK.
The connection to the AWS cloud S3 bucket is available since I can create tasks with the CVAT UI.
But when I try to use the create_from_data function of the Python SDK API, I get the following response:
The problem is that there is a fix path "/home/django/share/" configured for the CVAT Python SDK in the EC2 host instance, where is no access to the S3 bucket of the images and manifest data. Even if I try to give a complete path to the S3 bucket data, I always have the fix part of "/home/django/share/" at the beginning. This results to a created task, but without any images. When I do this with the CVAT UI in the EC2 host instance instead, I can create tasks with "cloud storage" successfully.
Minimal code example to reproduce:
Expected Behavior
create_from_data method should be able to access S3 bucket data like the CVAT UI.
Possible Solution
No response
Context
I have seen this related issue 6012 but for some reason it does not work unfortunately.
Environment
The text was updated successfully, but these errors were encountered: