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

Simplify upload data for task #5498

Merged
merged 28 commits into from
Dec 27, 2022
Merged

Conversation

Marishka17
Copy link
Contributor

@Marishka17 Marishka17 commented Dec 21, 2022

Motivation and context

It's possible to specify only the manifest file and filename pattern for creating task with cloud storage data.
The special characters supported now for the pattern are *, ?, [seq], [!seq].
Please see here for some examples of how to use this functionality.

How has this been tested?

Manually, added REST API test

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@Marishka17
Copy link
Contributor Author

/check

@github-actions
Copy link
Contributor

github-actions bot commented Dec 21, 2022

❌ Some checks failed
📄 See logs here

@Marishka17
Copy link
Contributor Author

/check

@github-actions
Copy link
Contributor

github-actions bot commented Dec 21, 2022

❌ Some checks failed
📄 See logs here

@Marishka17 Marishka17 changed the title [WIP] Simplify upload data for task Simplify upload data for task Dec 21, 2022
@nmanovic nmanovic requested review from zhiltsov-max and removed request for azhavoro December 22, 2022 08:01
Copy link
Contributor

@zhiltsov-max zhiltsov-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add:

  • PR description
  • Any documentation about this feature

Co-authored-by: Maxim Zhiltsov <zhiltsov.max35@gmail.com>
@Marishka17
Copy link
Contributor Author

/check

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2022

❌ Some checks failed
📄 See logs here

@Marishka17
Copy link
Contributor Author

/check

@github-actions
Copy link
Contributor

github-actions bot commented Dec 23, 2022

❌ Some checks failed
📄 See logs here

@Marishka17 Marishka17 changed the title [WIP] Simplify upload data for task [Do not merge] Simplify upload data for task Dec 23, 2022
@Marishka17 Marishka17 changed the title [Do not merge] Simplify upload data for task Simplify upload data for task Dec 23, 2022
@Marishka17 Marishka17 force-pushed the mk/symplify_upload_data_for_task branch 2 times, most recently from acdf9c5 to c1eb340 Compare December 23, 2022 13:38
@Marishka17 Marishka17 force-pushed the mk/symplify_upload_data_for_task branch from c1eb340 to 7cce69b Compare December 23, 2022 14:11
Copy link
Contributor

@zhiltsov-max zhiltsov-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to have any documentation on the feature, otherwise it's almost like "dead code". We could also add a CLI option for this feature. It can be done in other PRs.

images = []
for i in range(count):
image = generate_image_file(f"{i}.jpeg", color=(i, i, i))
prefix = prefixes[i] if prefixes else ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works only because len(prefixes) == count in the code. Probably it is a bug. Let's fix in your next PR.

@nmanovic nmanovic merged commit e624c5b into develop Dec 27, 2022
@nmanovic nmanovic deleted the mk/symplify_upload_data_for_task branch December 27, 2022 20:16
@zhiltsov-max zhiltsov-max mentioned this pull request Dec 30, 2022
7 tasks
nmanovic pushed a commit that referenced this pull request Dec 31, 2022
This PR fixes a problem with local running of tests introduced in #5498.
When running tests locally, there can be multiple tags available, while
we need the `dev` tag, which should be created right before tests are
executed.

- Added the missing image tag in the docker run command
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
It's possible to specify only the manifest file and filename pattern for
creating task with cloud storage data.
The special characters supported now for the pattern are `*`, `?`,
`[seq]`, `[!seq]`.
Please see
[here](https://github.com/opencv/cvat/blob/8898a8b2647514dd6f3f6ce83745b1ca8ef72bce/tests/python/rest_api/test_tasks.py#L686)
for some examples of how to use this functionality.

Co-authored-by: Maxim Zhiltsov <zhiltsov.max35@gmail.com>
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
This PR fixes a problem with local running of tests introduced in cvat-ai#5498.
When running tests locally, there can be multiple tags available, while
we need the `dev` tag, which should be created right before tests are
executed.

- Added the missing image tag in the docker run command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants