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

Add new option under actions tab #4933

Closed
himanshudw opened this issue Sep 12, 2022 · 11 comments
Closed

Add new option under actions tab #4933

himanshudw opened this issue Sep 12, 2022 · 11 comments
Labels
question Further information is requested

Comments

@himanshudw
Copy link

My actions before raising this issue

  • Read/searched doc on CVAT and README.md under cvat-ui section

Intend to add train button on the UI of CVAT under the Actions tab

Expected Behaviour

The click on the train button should take the dataset along with the annotation to a new page.

Current Behaviour

Unable to locate the procedure to make these changes

Context

image
Trying to add a train button under the dropdown in the actions tab

In the earlier version it is reflected as below but not sure about the changes need to be done in this new version
image

Your Environment

  • Docker version docker version :20.10.17
  • Operating System and version :Linux
  • CVAT Version :dev
@klakhov
Copy link
Contributor

klakhov commented Sep 12, 2022

Hey! You can look on actions-menu component and actions-menu container

@klakhov klakhov added the question Further information is requested label Sep 13, 2022
@himanshudw
Copy link
Author

Hey thanks for that @klakhov , could you please tell me the next action to this. After making the changes do I need to do npm version patch or npm start from the cvat-ui address ??

@klakhov
Copy link
Contributor

klakhov commented Sep 14, 2022

@himanshudw That depends on how you are using CVAT. If you are using docker, you need to build images locally with .dev.yml config and then restart your containers. Refer to docs

docker-compose down
docker-compose -f docker-compose.yml -f docker-compose.dev.yml build
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d

If you are using development environment, refer to dev docs, all changes in cvat-ui will be automatically detected and applied.

@himanshudw
Copy link
Author

Thanks a lot for those, it worked this way.

@himanshudw
Copy link
Author

I have been able to add a button to navigate from the CVAT UI. Just would like to understand how can we access the dataset from the UI point of view, yeah I understand http://localhost:8080/api/swagger/#/tasks/tasks_retrieve_dataset can manually download the dataset but how can we access it from the UI directly and upload on cloud.

@klakhov
Copy link
Contributor

klakhov commented Sep 27, 2022

Recently Source & Target cloud storages(#4842) were implemented in CVAT. Documentation for that feature is WIP, but you can find link to demo in the #4842.
You can export your dataset to attached cloud storage like that:
image

@himanshudw
Copy link
Author

himanshudw commented Sep 27, 2022

Few questions here

  1. How can I connect my azure container as cloud storage without the manifest file?
  2. Manifest file needs to be created for every task that I am making, if yes how to do so
  3. What are source and target cloud storage, is it different from connected file share that comes up when we create a new task?

EDIT1
While creating a manifest file using cvat/server just need clarification on below command

docker run -it --entrypoint python3 -v ~/Documents/data/:${HOME}/manifest/:rw cvat/server
utils/dataset_manifest/create.py --output-dir ~/manifest/ ~/manifest/images/

/Documents/data- is where CVAT store data. that would be home/Django/data inside container but where can I get it in VM.
${HOME}/manifest/- a new file volume of cvat/server will be made at home/manifest
/manifest/- this is file location on the virtual machine where we intend to save the generated manifest file
/manifest/images/- place where we will need to keep the images for making a manifest file

Is there a demo around this and specifically speaking about each of these locations in some detail

I am running CVAT on Virtual machine and want to mount azure container as cloud storage

@klakhov
Copy link
Contributor

klakhov commented Sep 28, 2022

@Marishka17 could you please help with answering these questions?

@Marishka17
Copy link
Contributor

@himanshudw, Hi

How can I connect my azure container as cloud storage without the manifest file

In the current implementation, it's impossible to attach cloud storage without a manifest file (but it's in our future plans). As a workaround, you can put the empty file to your bucket and specify it when attaching storage to CVAT.
Documentation for attaching Azure Blob Container can be found here.

Manifest file needs to be created for every task that I am making, if yes how to do so

The manifest file is used for another functionality. If you want to use data on your bucket, you can attach this bucket to CVAT. In this case, you should prepare a manifest file that will specify bucket content. If you have several datasets on your bucket and want to create annotation tasks with these data you can prepare one manifest or several for each dataset.
Please see the documentation for preparing manifest file.

What are source and target cloud storage, is it different from connected file share that comes up when we create a new task?

Source storage specifies the location from which annotations and backups will be uploaded to CVAT.
Target storage specifies the location to which annotations and backups will be downloaded from CVAT.
Yes it's different from a connected file share

@himanshudw
Copy link
Author

himanshudw commented Sep 28, 2022

Hi @Marishka17

Thank you so much for that clarification. I have been able to add the cloud storage with a blank manifest file but then it is giving error as per the below image

image

The main intent for me is to upload the annotation for the task in TFrecord 1.0 format to the azure container so as per the demo in on of the above comment I could see it happening.

Now as you rightly mentioned that the dataset on the azure cloud could be used to create a task and for that we need the manifest file so while creating a task
image

I request you to kindly clarify the paths for manifest file else a way out for me to upload the annotations directly to the cloud storage using the UI.

I tried to create the manifest file using the documentation using Alternative way to use with cvat/server but then the paths mentioned are not very clear and my understanding are in the above comments, kindly clarify on those too please.

Thanks in advance

@nmanovic
Copy link
Contributor

nmanovic commented Jan 5, 2023

@himanshudw , please discuss questions in any of our public channels: https://github.com/opencv/cvat#contact-us. I will close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants