Skip to content

Commit

Permalink
build(qwen-vl-utils) v0.0.8
Browse files Browse the repository at this point in the history
1. fix version.parse
  • Loading branch information
kq-chen committed Sep 24, 2024
1 parent c6e6201 commit 4a2035c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qwen-vl-utils/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "qwen-vl-utils"
version = "0.0.6"
version = "0.0.8"
description = "Qwen Vision Language Model Utils - PyTorch"
authors = [
{ name = "Qwen Team", email = "chenkeqin.ckq@alibaba-inc.com" },
Expand Down
2 changes: 1 addition & 1 deletion qwen-vl-utils/src/qwen_vl_utils/vision_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _read_video_torchvision(
torch.Tensor: the video tensor with shape (T, C, H, W).
"""
video_path = ele["video"]
if version(torchvision.__version__) < version.parse("0.19.0"):
if version.parse(torchvision.__version__) < version.parse("0.19.0"):
if "http://" in video_path or "https://" in video_path:
warnings.warn("torchvision < 0.19.0 does not support http/https video path, please upgrade to 0.19.0.")
if "file://" in video_path:
Expand Down

0 comments on commit 4a2035c

Please sign in to comment.