-
Notifications
You must be signed in to change notification settings - Fork 3k
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 several flags to task_create CLI #4119
Add several flags to task_create CLI #4119
Conversation
definition.py: - Add use_zip_chunks, start_frame, stop_frame, and chunk_size as CLI flags - Rename --bug to --bug_tracker to be consistent with website and API - No longer include optional kwargs in all requests core.py: - Add a single loop to handle all kwargs for extensibility - Lump optional task_create args into kwargs for brevity
- Add back old --bug flag for backwards compatability
Update licence header for core.py
…eze/cvat into refine_task_create_cli
- Remove hardcoded `image_quality` default value, as this is already handled by the argparse default value.
- Several linting fixes for CLI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please fix pylint warnings
pylint_report (2).zip
Thanks for the contribution! |
- Re-add default image_quality in case task_create is called manually
Linting warnings have been fixed -- thanks for the heads-up. I have also re-added a hardcoded default of 70 for Please do let me know if anything else needs to be done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution.
Motivation and context
The current CLI is very helpful for automation, but lacks the ability to set several parameters. This pull request adds flags for setting
chunk_size
,start_frame
,stop_frame
, anduse_zip_chunks
& fixes #3855.This pull request also fixes several kinks with the
task_create
CLI:bug_tracker
parameter can now be passed with--bug_tracker
as well as the previous flag--bug
.if
statements, making it easier to add flags in the future.**kwargs
instead of positional args.How has this been tested?
The updated create function has been called successfully from the CLI on Windows 10 (build 19043).
Checklist
develop
branch[ ] I have updated the documentation accordinglycvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.