未验证 提交 d91ba566 编写于 作者: J Jan Hünnemeyer 提交者: GitHub

Fix incorrect comparison (#3674)

* Fix incorrect comparison
* Add changelog entry
上级 0cc3db95
......@@ -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 task creating CLI parameter (<https://github.com/openvinotoolkit/cvat/pull/3519>)
- 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
......
......@@ -170,7 +170,7 @@ class CLI():
# FIXME It is better to use meta information from the server
# to determine the extension
# 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'
outfile = 'task_{}_frame_{:06d}{}'.format(task_id, frame_id, im_ext)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册