Fix incorrect comparison (#3674)

* Fix incorrect comparison
* Add changelog entry
main
Jan Hünnemeyer 4 years ago committed by GitHub
parent 0cc3db952e
commit d91ba56622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,6 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed multiple tasks moving (<https://github.com/openvinotoolkit/cvat/pull/3517>) - Fixed multiple tasks moving (<https://github.com/openvinotoolkit/cvat/pull/3517>)
- Fixed task creating CLI parameter (<https://github.com/openvinotoolkit/cvat/pull/3519>) - Fixed task creating CLI parameter (<https://github.com/openvinotoolkit/cvat/pull/3519>)
- Fixed import for MOTS format (<https://github.com/openvinotoolkit/cvat/pull/3612>) - Fixed import for MOTS format (<https://github.com/openvinotoolkit/cvat/pull/3612>)
- Fixed extension comparison in task frames CLI (<https://github.com/openvinotoolkit/cvat/pull/3674>)
## \[1.5.0] - 2021-08-02 ## \[1.5.0] - 2021-08-02

@ -170,7 +170,7 @@ class CLI():
# FIXME It is better to use meta information from the server # FIXME It is better to use meta information from the server
# to determine the extension # to determine the extension
# replace '.jpe' or '.jpeg' with a more used '.jpg' # replace '.jpe' or '.jpeg' with a more used '.jpg'
if im_ext == '.jpe' or '.jpeg' or None: if im_ext in ('.jpe', '.jpeg', None):
im_ext = '.jpg' im_ext = '.jpg'
outfile = 'task_{}_frame_{:06d}{}'.format(task_id, frame_id, im_ext) outfile = 'task_{}_frame_{:06d}{}'.format(task_id, frame_id, im_ext)

Loading…
Cancel
Save