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

Delete images/frames from an existing task #95

Closed
carlescarmonacalpe opened this issue Sep 26, 2018 · 28 comments
Closed

Delete images/frames from an existing task #95

carlescarmonacalpe opened this issue Sep 26, 2018 · 28 comments
Labels
enhancement New feature or request

Comments

@carlescarmonacalpe
Copy link

Hi,

Thank you for this amazing tools, seems really promising. I'd like to suggest a new feature which is to allow to add/delete images/videos from an existing task. From my side it's really common to extend or reduce the dataset size during the development process.

Thank you for you work!

@nmanovic
Copy link
Contributor

nmanovic commented Oct 1, 2018

Hi @carlescarmonacalpe ,

Why is it not possible just to create one more annotation task with new images? What is the advantage to update the same task?

@nmanovic nmanovic added the question Further information is requested label Oct 1, 2018
@carlescarmonacalpe
Copy link
Author

Hi,

The only advantage is that you don't need to modify/join the exported files If you annotate two different tasks and you need to have both annotations together to train a model.

@nmanovic
Copy link
Contributor

nmanovic commented Oct 3, 2018

Hi @carlescarmonacalpe ,

If you have a good idea how to implement that please send us a PR. Our internal focus is to add stability, introduce analytics, improve UI and implement a couple of semi-automated methods to annotate data. Please let me close the issue for now but if you like implement such functionality don't hesitate to reopen it. In any case I really appreciate your involvements. Thank you very much!

@nmanovic
Copy link
Contributor

nmanovic commented Jan 9, 2019

Probably it isn't a bad idea to treat an annotation task like a dataset (which can be extended or reduced). It is especially good if we will be able to change status of an annotation task automatically (e.g. done -> annotate). Also a couple of internal customers also requested the feature.

@nmanovic nmanovic reopened this Jan 9, 2019
@nmanovic nmanovic added enhancement New feature or request and removed question Further information is requested labels Jan 9, 2019
@nmanovic nmanovic modified the milestones: Backlog, 0.4.0 - Beta Jan 9, 2019
@nmanovic
Copy link
Contributor

nmanovic commented Feb 8, 2019

Vitor Casadei 04:41
Hi, I used to use vatic and it exported the videos in image format. However on CVAT I can only download the labels, is that right? I've got to convert frames to images on my own?

vcasadei , at the moment you need to prepare data (at least for videos) by yourself. Internally we don't keep original data to save server disk space. When you upload data CVAT does compress images (image_quality parameter when you create an annotation task). Thus 1 frame can weight only 10-100 kilobytes. For example, an original image in png format can be several megabytes. I will submit an issue regarding that. Probably we need one more step in CVAT: prepare a dataset. Thus users can prepare data and after that download them from CVAT as is. If you can help us with such app/feature for CVAT you are welcome.

@nmanovic nmanovic assigned bsekachev and unassigned azhavoro Feb 25, 2019
@nmanovic nmanovic modified the milestones: 0.4.0 - Beta, 0.5.0 - Alpha Apr 11, 2019
@nmanovic nmanovic modified the milestones: 0.5.0 - Alpha, 0.5.0 - Beta Jun 25, 2019
@nmanovic
Copy link
Contributor

The feature will be implemented only in our new UI. Thus need to move it on v1.0.0 which is expected at the end of the year.

@nmanovic nmanovic modified the milestones: 0.5.0 - Beta, 1.0.0 - Beta Jul 22, 2019
@pagujeeva
Copy link

I am facing similar issue where I will have to consolidate/add additional frames with annotation and generate one single JSON file. Is there a way, I can do that?

@nmanovic nmanovic modified the milestones: 1.0.0 - Beta, 1.1.0 - Beta Mar 21, 2020
@davodogster
Copy link

Hello @nmanovic and @bsekachev Does it work now? Adding images to an existing task, or merging tasks within a project.

@bsekachev
Copy link
Member

@davodogster

No updates on the feature.
Instead of adding images to an existing task, you can move the task to a project and create another task in the project with new images. Finally, you can dump all the annotations for the project, after #3365 will be merged.

As a workaround, you can add to extra images a tag: "extra" for example. And if the annotation file contains this tag, you just ignore the image.

@davodogster
Copy link

@bsekachev Awesome, I'm looking forward to using this feature when it has been merged. Thank you

@nmanovic
Copy link
Contributor

@davodogster , it was merged already. Please use the latest development version if you want to test/use the feature.

To close the issue we are waiting ability to mark images/frames as removed in a task.

@davodogster
Copy link

@nmanovic Great, thanks. So I need to docker-compose stop, backup my annotations and then clone the latest cvat github repository and then docker-compose again ? Regards, Sam

@nmanovic
Copy link
Contributor

@davodogster , it is the fastest way.

@davodogster
Copy link

@nmanovic Hi guys, I just cloned the latest version of cvat and ran docker compose and modified the docker compose file (I notice there were some big changes to the docker compose file) see here:

image

It deployed successfully but there is no option for exporting a project as a dataset in the "Actions" tab.

image

Am I doing something wrong?

@azhavoro
Copy link
Contributor

@nmanovic Hi guys, I just cloned the latest version of cvat and ran docker compose and modified the docker compose file (I notice there were some big changes to the docker compose file) see here:

image

It deployed successfully but there is no option for exporting a project as a dataset in the "Actions" tab.

image

Am I doing something wrong?

Hi, please use Export task dataset option in the Actions tab.

Regarding orphans container - it's expected, just follow the docker suggestion and add --remove-orphans once.

@davodogster
Copy link

davodogster commented Aug 18, 2021 via email

TOsmanov pushed a commit to TOsmanov/cvat that referenced this issue Aug 23, 2021
@ryanalexmartin
Copy link

The workaround described above, exporting the labeled data and using those labels on a subset of images, does not work when using COCO annotations, if the images you wish to ignore already contain labels. I don't think the workaround provided above is sufficient for most CVAT users. This is a rather basic functionality, it is perhaps my team's greatest frustration with CVAT.

Is it possible to exec into the PostgreSQL DB and delete annotated images from there?

@nmanovic nmanovic removed this from the Backlog milestone Nov 28, 2021
@nmanovic nmanovic changed the title Add/Delete images/video to existing task Delete images/frames from an existing task Nov 28, 2021
@domef
Copy link

domef commented Jul 18, 2022

any update on this feature?

@nmanovic
Copy link
Contributor

@domef , it will be available this week.

@bsekachev
Copy link
Member

Hi guys, @carlescarmonacalpe @domef

The feature has been finished and implemented in our CVAT fork, here: https://github.com/cvat-ai/cvat

@adamsau
Copy link

adamsau commented Jul 31, 2022

+1 really need this feature

@nmanovic
Copy link
Contributor

@adamsau , is it something which you are looking for? https://cvat-ai.github.io/cvat/docs/manual/advanced/delete_frame/

@adamsau
Copy link

adamsau commented Jul 31, 2022

yes thanks a lot!

@bsekachev
Copy link
Member

It is possible now, you can update CVAT from develop branch if you want to use the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests