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

Refactor project export using datumaro.Tranform #3535

Closed
2 tasks done
ActiveChooN opened this issue Aug 10, 2021 · 0 comments
Closed
2 tasks done

Refactor project export using datumaro.Tranform #3535

ActiveChooN opened this issue Aug 10, 2021 · 0 comments
Assignees

Comments

@ActiveChooN
Copy link
Contributor

My actions before raising this issue

@zhiltsov-max proposed the idea to use datumaro transformations in CVATProjectDataExtractor class to reduce the amount of duplicated code with CVATTaskDataExtractor. Rough class implementation can look like:

task_datasets = { task_id: make_task_dataset(task) for task_id, task in tasks }
# append name mangling and other transforms like
for task_id, task_dataset in task_datasets.items():
    task_dataset.transform('rename', ...)

dataset = Dataset.from_extractors(*task_datasets)

The custom transformer can be written for frame number merging and image names mangling

Originally posted by @zhiltsov-max in #3502 (comment)

@ActiveChooN ActiveChooN added the enhancement New feature or request label Aug 10, 2021
@ActiveChooN ActiveChooN self-assigned this Aug 10, 2021
@nmanovic nmanovic added refactoring and removed enhancement New feature or request labels Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants