-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Issue with creating task with annotatios #6287
Comments
Hi, could you please specify server and SDK versions? |
CVAT are the same on both hosts. SDK version: 2.4.4 |
Could you please check if you can upload annotations separately, after the task is created? |
I've tried to upload them after task creation, but result was the same.
|
Could you please tell how the annotation file path looks like? Is it relative or absolute? |
CVAT file for task with video looks like this:
|
It looks like issue is related to traffic route. Uploading to localhost works fine, but for DNS name it doesn't. |
If the annotation file is uploaded successfully and you're using the latest develop branch, I feel the problem may be related to how uploaded files are stored on the server, as it was changed in #5909 . Please tell how the uploaded file name looks like and try to use the same SDK version as the server version. Please also check if uploading with UI works normally. @Marishka17, please take a look. |
Uploaded file names are:
Manual uploading via UI works fine. |
I discovered that despite of errors annotations is uploaded to tasks and they are visible in jobs. |
I am experiencing a similar Issue, I will add my information in the hope that the context may help with finding a solution. My actions before raising this issue
Steps to Reproduce (for bugs)I have one running version of CVAT on my local machine which I access via localhost:8080. I tried to use the High Level Python API to upload a task with annotations. The code looks like:
Expected BehaviourUpload Task with annotations without exception. Current BehaviourUploading in general works fine, the task gets created and the annoations are added but the following Exception is thrown: Possible SolutionI tried to test the code with the versions 2.4.5 and 2.4.4 of the cvat_server, but the server container does not start. Your Environment
|
Hi. We were able to reproduce the problem. It seems that there is no public released version of SDK for v2.4.5 / 2.4.6, while there are some API changes in 2.4.6, so v2.4.4 doesn't work. You can either use a self-compiled version of SDK from sources (read here how to do this), or wait for the public package to arrive in |
Since today it is possible to install v2.4.6 via |
I had problem uploading the annotations to a job that I had already created using the example codes that was provided in the cvat_sdk documentations. The code that I used was as follows:
Using this code I got the following error:
After searching the internet and reading any document that I could find, eventually I tried digging into the cvat codes. I finally found out what the solution is an present it here for others who might have the same problem. The following code worked for me:
I hope that it helps. |
My actions before raising this issue
Steps to Reproduce (for bugs)
I have two CVAT instances, one on local machine, another on remote. Task creation on local machine works fine, but on remote I getting exception when I try to create task with annotations.
Expected Behaviour
Task created on both local and remote hosts.
Current Behaviour
Exception raised while creating task on remote machine:
Tasks with no annotations were created.
Possible Solution
Context
Your Environment
Local: Mac Intel
Docker version 24.0.2, build cb74dfc
Remote: Ubuntu
Docker version 23.0.5, build bc4487a
CVAT are the same on both hosts.
Server version: 2.5
Core version: 9.1.1
SDK version: 2.4.4
My code:
Annotation formats I've tried to upload: PASCAL VOC 1.1 and CVAT 1.1.
Posted here #5781 as well.
The text was updated successfully, but these errors were encountered: