cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.22k stars 2.95k forks source link

Cannot recreate project/task from backup with sorting method predefined and no cache #5042

Open nikste opened 1 year ago

nikste commented 1 year ago

My actions before raising this issue

I've created many tasks using cvat-cli automatically using sorting-method predefined without the --use_cache flag. I've created a backup of a project and try to restore from the downloaded zip file i get the error message:

"Exception: It isn't supported to import the task that was created without cache but with random/predefined sorting\n."

This is very unfortunate since i (and my team) were relying on these backups to be able to easily restore from. Due to unforseen external circumstances I've lost ssh access to the server it is currently running on and i only have access to the UI. I'd like to re-setup cvat on a different server but don't start annotation from scratch. Any advice to recreate the annotated data is appreciated! Hopefully this is already fixed in the newer versions.

Expected Behaviour

Being able to recreate a backup. Or being very very clearly warned that i wont be able to restore from this backup if sorting_method is predefined and no cache.

Current Behaviour

cant restore

Possible Solution

Make it possible to restore from backup, or make it very clear during creation of the backup (!) that you cannot restore from this.

Steps to Reproduce (for bugs)

create task with predefined sorting method through cli

Context

see description

Your Environment

lost access to server, setup with docker-compose

nikste commented 1 year ago

you can reproduce it also by creating a task in the UI wie predefined sorting and unchecking the cache button in advanced options. Then create backup and try to recreate from backup.

nikste commented 1 year ago

unfortunately this still seems to be the case in the most recent development version: bcb3f9bda8f4fc716659829dbea751d85d99a748

zhiltsov-max commented 1 year ago

@azhavoro , could you look at this problem?

zhiltsov-max commented 1 year ago

As a workaround, please try to export the task as a dataset in the corresponding CVAT for * format. It will not serve exactly as a backup, but it should produce very similar results.

nmanovic commented 1 year ago

A very similar issue: https://github.com/opencv/cvat/issues/5061

nmanovic commented 1 year ago

@zhiltsov-max , I believe we can remove "predefined" method as you suggested after your PR https://github.com/opencv/cvat/pull/5536 is merged