Video-Text-to-Text
Transformers
Safetensors
qwen3_vl
image-text-to-text
qwen3-vl
video
motion-analysis
motion-quality-assessment
emnlp-2026-findings
custom-code
Instructions to use JohnZhan/MotionInsight-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JohnZhan/MotionInsight-8B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("JohnZhan/MotionInsight-8B") model = AutoModelForMultimodalLM.from_pretrained("JohnZhan/MotionInsight-8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Publish EMNLP 2026 Findings model card, branding, and reproducible requirements
Browse files- .gitattributes +2 -0
- CITATION.cff +52 -0
- LICENSE +201 -0
- NOTICE +7 -0
- README.md +182 -12
- assets/method-overview.png +3 -0
- assets/motion-failures.png +3 -0
- assets/motioninsight-banner.png +0 -0
- assets/motioninsight-icon.svg +14 -0
- requirements/inference.txt +16 -0
- requirements/preprocess.txt +37 -0
- requirements/train.txt +12 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/method-overview.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/motion-failures.png filter=lfs diff=lfs merge=lfs -text
|
CITATION.cff
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
message: "If you use MotionInsight, please cite the paper below."
|
| 3 |
+
title: "MotionInsight: Diagnosing Object Motion Deficiencies in Generated Videos"
|
| 4 |
+
type: software
|
| 5 |
+
authors:
|
| 6 |
+
- family-names: Zhan
|
| 7 |
+
given-names: Jiahao
|
| 8 |
+
- family-names: Ma
|
| 9 |
+
given-names: Yongrui
|
| 10 |
+
- family-names: Xing
|
| 11 |
+
given-names: Qunliang
|
| 12 |
+
- family-names: Zhang
|
| 13 |
+
given-names: Xuanyu
|
| 14 |
+
- family-names: Tong
|
| 15 |
+
given-names: Jingqi
|
| 16 |
+
- family-names: Li
|
| 17 |
+
given-names: Junlin
|
| 18 |
+
- family-names: Li
|
| 19 |
+
given-names: Zhang
|
| 20 |
+
- family-names: Zhao
|
| 21 |
+
given-names: Shijie
|
| 22 |
+
- family-names: Xue
|
| 23 |
+
given-names: Tianfan
|
| 24 |
+
version: 0.1.0
|
| 25 |
+
date-released: 2026-08-30
|
| 26 |
+
license: Apache-2.0
|
| 27 |
+
|
| 28 |
+
repository-code: "https://github.com/JohnZhan2023/MotionInsight"
|
| 29 |
+
preferred-citation:
|
| 30 |
+
type: conference-paper
|
| 31 |
+
title: "MotionInsight: Diagnosing Object Motion Deficiencies in Generated Videos"
|
| 32 |
+
authors:
|
| 33 |
+
- family-names: Zhan
|
| 34 |
+
given-names: Jiahao
|
| 35 |
+
- family-names: Ma
|
| 36 |
+
given-names: Yongrui
|
| 37 |
+
- family-names: Xing
|
| 38 |
+
given-names: Qunliang
|
| 39 |
+
- family-names: Zhang
|
| 40 |
+
given-names: Xuanyu
|
| 41 |
+
- family-names: Tong
|
| 42 |
+
given-names: Jingqi
|
| 43 |
+
- family-names: Li
|
| 44 |
+
given-names: Junlin
|
| 45 |
+
- family-names: Li
|
| 46 |
+
given-names: Zhang
|
| 47 |
+
- family-names: Zhao
|
| 48 |
+
given-names: Shijie
|
| 49 |
+
- family-names: Xue
|
| 50 |
+
given-names: Tianfan
|
| 51 |
+
collection-title: "Findings of the Association for Computational Linguistics: EMNLP 2026"
|
| 52 |
+
year: 2026
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
NOTICE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MotionInsight
|
| 2 |
+
Copyright 2026 ByteDance Ltd. and/or its affiliates
|
| 3 |
+
|
| 4 |
+
This distribution includes software and model components derived from Qwen3-VL,
|
| 5 |
+
Hugging Face Transformers, and the projects listed in THIRD_PARTY_NOTICES.md.
|
| 6 |
+
Third-party components retain their original licenses and are not relicensed by
|
| 7 |
+
the root Apache License 2.0.
|
README.md
CHANGED
|
@@ -2,31 +2,201 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
library_name: transformers
|
| 4 |
pipeline_tag: video-text-to-text
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
- qwen3-vl
|
| 7 |
- video
|
| 8 |
- motion-analysis
|
| 9 |
- motion-quality-assessment
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
and CoTracker3, and camera motion from VIPE. It predicts diagnostic reasoning and
|
| 19 |
-
three motion-quality scores.
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
```bash
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
python scripts/patch_transformers.py
|
| 29 |
-
python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
```
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
library_name: transformers
|
| 4 |
pipeline_tag: video-text-to-text
|
| 5 |
+
base_model: Qwen/Qwen3-VL-8B-Instruct
|
| 6 |
+
base_model_relation: finetune
|
| 7 |
tags:
|
| 8 |
- qwen3-vl
|
| 9 |
- video
|
| 10 |
- motion-analysis
|
| 11 |
- motion-quality-assessment
|
| 12 |
+
- emnlp-2026-findings
|
| 13 |
+
- custom-code
|
| 14 |
---
|
| 15 |
|
| 16 |
+
<p align="center">
|
| 17 |
+
<img src="assets/motioninsight-banner.png" alt="MotionInsight" width="100%">
|
| 18 |
+
</p>
|
| 19 |
|
| 20 |
+
<h1 align="center">MotionInsight: Diagnosing Object Motion<br>Deficiencies in Generated Videos</h1>
|
| 21 |
+
<p align="center"><strong>EMNLP 2026 Findings</strong></p>
|
| 22 |
+
<p align="center">
|
| 23 |
+
Jiahao Zhan, Yongrui Ma, Qunliang Xing, Xuanyu Zhang,<br>
|
| 24 |
+
Jingqi Tong, Junlin Li, Li Zhang, Shijie Zhao, Tianfan Xue
|
| 25 |
+
</p>
|
| 26 |
+
<p align="center">
|
| 27 |
+
<a href="https://github.com/JohnZhan2023/MotionInsight">Code</a> ·
|
| 28 |
+
<a href="https://github.com/JohnZhan2023/MotionInsight/blob/main/paper.pdf">Paper</a> ·
|
| 29 |
+
<a href="#quick-start">Quick start</a> ·
|
| 30 |
+
<a href="#citation">Citation</a>
|
| 31 |
+
</p>
|
| 32 |
|
| 33 |
+
## Model overview
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
MotionInsight is an object-centric diagnostic evaluator for motion in generated
|
| 36 |
+
videos. Given a video, a target object, object-motion features from SAM3 and
|
| 37 |
+
CoTracker3, and camera poses from VIPE, it generates diagnostic reasoning and
|
| 38 |
+
three continuous scores from **1.0 (poor)** to **5.0 (excellent)**.
|
| 39 |
|
| 40 |
+
| Evaluation dimension | Output field | What it measures |
|
| 41 |
+
|---|---|---|
|
| 42 |
+
| Object consistency | `structural_stability` | Stable object identity, appearance, and structure. |
|
| 43 |
+
| Motion continuity | `motion_coherence` | Smooth, continuous motion without jumps or jitter. |
|
| 44 |
+
| Physical plausibility | `physical_plausibility` | Motion consistent with forces, contact, and basic physical dynamics. |
|
| 45 |
+
|
| 46 |
+
The JSON field names retain the terminology used to train the released checkpoint.
|
| 47 |
+
|
| 48 |
+
<p align="center"><img src="assets/motion-failures.png" width="100%" alt="Examples of motion failures from the paper: unsupported bounce, teleportation, and inconsistent object orientation."></p>
|
| 49 |
+
|
| 50 |
+
| Property | Released checkpoint |
|
| 51 |
+
|---|---|
|
| 52 |
+
| Checkpoint | `multidim-all/checkpoint-5500` |
|
| 53 |
+
| Base model | Qwen3-VL-8B-Instruct |
|
| 54 |
+
| Architecture | Qwen3VLForConditionalGeneration with custom motion modules |
|
| 55 |
+
| Parameters stored in tensors | 8,853,438,704 (including vision and motion modules) |
|
| 56 |
+
| Weights | Four Safetensors shards, BF16, approximately 17.7 GB |
|
| 57 |
+
| Motion feature dimension | 1110 for object motion; 9 for the released camera representation |
|
| 58 |
+
| Motion token | `<\|motion\|>` (ID 151669) |
|
| 59 |
+
| Output | Reasoning plus three scores |
|
| 60 |
+
|
| 61 |
+
The repository contains inference artifacts. Optimizer states, scheduler states,
|
| 62 |
+
RNG states, training arguments, virtual environments, and extracted features are
|
| 63 |
+
not included. **VidMotion, its videos, and its annotations are not distributed.**
|
| 64 |
+
|
| 65 |
+
## Quick start
|
| 66 |
+
|
| 67 |
+
**Use the custom Qwen3-VL patch from the code repository.** The automatically
|
| 68 |
+
generated Transformers snippet on the Hub does not install MotionInsight's
|
| 69 |
+
motion projectors or reproduce its feature preparation. Use `inference.py` after
|
| 70 |
+
applying the patch, as shown below.
|
| 71 |
+
|
| 72 |
+
Create a dedicated **Python 3.10** environment for inference. The public
|
| 73 |
+
requirements in this model repository are based on the supplied model environment;
|
| 74 |
+
preprocessing uses a separate environment described below.
|
| 75 |
|
| 76 |
```bash
|
| 77 |
+
git clone --recurse-submodules https://github.com/JohnZhan2023/MotionInsight.git
|
| 78 |
+
cd MotionInsight
|
| 79 |
+
|
| 80 |
+
python3.10 -m venv .venv-model
|
| 81 |
+
source .venv-model/bin/activate
|
| 82 |
+
python -m pip install --upgrade pip
|
| 83 |
+
python -m pip install huggingface-hub==0.36.2
|
| 84 |
+
hf download JohnZhan/MotionInsight-8B --local-dir checkpoints/MotionInsight-8B
|
| 85 |
+
|
| 86 |
+
python -m pip install torch==2.11.0 torchvision==0.26.0 \
|
| 87 |
+
--index-url https://download.pytorch.org/whl/cu126
|
| 88 |
+
python -m pip install -r checkpoints/MotionInsight-8B/requirements/inference.txt
|
| 89 |
python scripts/patch_transformers.py
|
| 90 |
+
python scripts/patch_transformers.py --check
|
| 91 |
+
python scripts/verify_checkpoint.py checkpoints/MotionInsight-8B
|
| 92 |
+
python -m pip check
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
After extracting features from the same unaltered video timeline:
|
| 96 |
+
|
| 97 |
+
```bash
|
| 98 |
+
python inference.py \
|
| 99 |
+
--model_name_or_path checkpoints/MotionInsight-8B \
|
| 100 |
+
--video_path /path/to/video.mp4 \
|
| 101 |
+
--object_motion_path /path/to/object_motion.pt \
|
| 102 |
+
--camera_motion_path /path/to/camera_motion.pt \
|
| 103 |
+
--target "tennis ball" \
|
| 104 |
+
--output_path outputs/prediction.jsonl
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
The output format is illustrated below; these numbers are an example, not a
|
| 108 |
+
reported evaluation result:
|
| 109 |
+
|
| 110 |
+
```text
|
| 111 |
+
<thinking>Diagnostic reasoning about the target object's motion.</thinking>
|
| 112 |
+
<answer>{"structural_stability": 3.0, "physical_plausibility": 4.5, "motion_coherence": 3.5}</answer>
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
Use the repository's manifest-based interface for batch inference. The released
|
| 116 |
+
inference setting samples frames with stride 16 and uses deterministic decoding.
|
| 117 |
+
Memory use depends on video length and visual resolution; the BF16 weights alone
|
| 118 |
+
occupy approximately 17.7 GB before activations and generation caches.
|
| 119 |
+
|
| 120 |
+
## Preprocessing environment
|
| 121 |
+
|
| 122 |
+
Feature extraction uses **Python 3.10, PyTorch 2.7.0 + CUDA 12.8,
|
| 123 |
+
Transformers 4.48.3**. Do not mix this environment with the model environment.
|
| 124 |
+
From the cloned code repository, after downloading this model:
|
| 125 |
+
|
| 126 |
+
```bash
|
| 127 |
+
deactivate
|
| 128 |
+
python3.10 -m venv .venv-preprocess
|
| 129 |
+
source .venv-preprocess/bin/activate
|
| 130 |
+
python -m pip install --upgrade pip
|
| 131 |
+
python -m pip install torch==2.7.0 torchvision==0.22.0 \
|
| 132 |
+
--index-url https://download.pytorch.org/whl/cu128
|
| 133 |
+
python -m pip install -r checkpoints/MotionInsight-8B/requirements/preprocess.txt
|
| 134 |
+
python -m pip install -c checkpoints/MotionInsight-8B/requirements/preprocess.txt \
|
| 135 |
+
-e thirdparty/co-tracker -e thirdparty/sam3
|
| 136 |
+
python -m pip install -c checkpoints/MotionInsight-8B/requirements/preprocess.txt \
|
| 137 |
+
--no-build-isolation -e thirdparty/vipe
|
| 138 |
+
python -m pip check
|
| 139 |
```
|
| 140 |
|
| 141 |
+
VIPE needs a compatible CUDA toolkit with `nvcc`, a C++ compiler, and its system
|
| 142 |
+
libraries. Download the third-party model weights and follow the
|
| 143 |
+
[feature extraction instructions](https://github.com/JohnZhan2023/MotionInsight#extract-motion-features).
|
| 144 |
+
The CoTracker and SAM3 forks contain required compatibility changes.
|
| 145 |
+
|
| 146 |
+
The public preprocessing requirements correct an inconsistent Hub dependency
|
| 147 |
+
in the source environment by using `huggingface-hub==0.36.2`. They retain
|
| 148 |
+
`numpy==1.26.4` for compatibility with SAM3.
|
| 149 |
+
|
| 150 |
+
## Training
|
| 151 |
+
|
| 152 |
+
In `.venv-model`, install `requirements/train.txt` from this model repository for
|
| 153 |
+
TRL, DeepSpeed, and public training integrations. Public `wandb==0.19.11` replaces
|
| 154 |
+
the internal W&B package in the source environment; the provided launchers disable
|
| 155 |
+
online reporting by default.
|
| 156 |
+
|
| 157 |
+
The released training code provides modality alignment followed by multi-task
|
| 158 |
+
GRPO. See the [training guide](https://github.com/JohnZhan2023/MotionInsight/blob/main/TRAINING.md)
|
| 159 |
+
for data schemas and launch commands. Training data is not included.
|
| 160 |
+
|
| 161 |
+
The original training configuration uses FlashAttention 2. Its compiled extension
|
| 162 |
+
must match the installed PyTorch/CUDA versions. The inspected source environment's
|
| 163 |
+
`flash-attn==2.7.4.post1` binary fails to import with PyTorch 2.11.0, so it is not
|
| 164 |
+
included in the public requirements. Inference does not require this extension.
|
| 165 |
+
Before training, install and verify a compatible FlashAttention build or configure
|
| 166 |
+
the launcher to use `--attn_implementation sdpa`. Dependency resolution and checkpoint
|
| 167 |
+
integrity have been checked; a new end-to-end GPU training run was not performed
|
| 168 |
+
for this packaging update.
|
| 169 |
+
|
| 170 |
+
## Method and intended use
|
| 171 |
+
|
| 172 |
+
<p align="center"><img src="assets/method-overview.png" width="100%" alt="MotionInsight method overview from Figure 2 of the paper."></p>
|
| 173 |
+
|
| 174 |
+
MotionInsight complements RGB observations with explicit motion evidence, aligns
|
| 175 |
+
motion representations with the VLM through motion descriptions, and uses
|
| 176 |
+
motion-specific GRPO rewards for diagnostic assessment. The figure shows the
|
| 177 |
+
paper's conceptual method; the code and checkpoint define the released implementation.
|
| 178 |
+
|
| 179 |
+
The model is intended for research on generated-video evaluation and motion
|
| 180 |
+
failure diagnosis. It targets objects with clear spatial boundaries, persistent
|
| 181 |
+
identities, and trackable trajectories. It is less suitable for smoke, fluids,
|
| 182 |
+
fire, splashes, or highly deformable materials. Target ambiguity, tracking and
|
| 183 |
+
segmentation failures, inaccurate camera poses, temporal misalignment, and
|
| 184 |
+
out-of-distribution content can affect its scores and explanations.
|
| 185 |
+
|
| 186 |
+
## License
|
| 187 |
+
|
| 188 |
+
The released MotionInsight model weights are provided under Apache-2.0; see
|
| 189 |
+
[LICENSE](LICENSE). Third-party preprocessing components keep their own licenses,
|
| 190 |
+
including CoTracker's CC BY-NC 4.0 and SAM3's SAM License. See the code repository's
|
| 191 |
+
[third-party notices](https://github.com/JohnZhan2023/MotionInsight/blob/main/THIRD_PARTY_NOTICES.md).
|
| 192 |
+
|
| 193 |
+
## Citation
|
| 194 |
+
|
| 195 |
+
```bibtex
|
| 196 |
+
@inproceedings{zhan2026motioninsight,
|
| 197 |
+
title = {MotionInsight: Diagnosing Object Motion Deficiencies in Generated Videos},
|
| 198 |
+
author = {Zhan, Jiahao and Ma, Yongrui and Xing, Qunliang and Zhang, Xuanyu and Tong, Jingqi and Li, Junlin and Li, Zhang and Zhao, Shijie and Xue, Tianfan},
|
| 199 |
+
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2026},
|
| 200 |
+
year = {2026}
|
| 201 |
+
}
|
| 202 |
+
```
|
assets/method-overview.png
ADDED
|
Git LFS Details
|
assets/motion-failures.png
ADDED
|
Git LFS Details
|
assets/motioninsight-banner.png
ADDED
|
assets/motioninsight-icon.svg
ADDED
|
|
requirements/inference.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Python 3.10; derived from the supplied training/inference environment.
|
| 2 |
+
# Install the CUDA 12.6 PyTorch wheels first; see docs/INSTALL.md.
|
| 3 |
+
torch==2.11.0
|
| 4 |
+
torchvision==0.26.0
|
| 5 |
+
transformers==4.57.1
|
| 6 |
+
tokenizers==0.22.2
|
| 7 |
+
huggingface-hub==0.36.2
|
| 8 |
+
accelerate==1.13.0
|
| 9 |
+
qwen-vl-utils==0.0.10
|
| 10 |
+
decord==0.6.0
|
| 11 |
+
av==17.0.0
|
| 12 |
+
numpy==1.26.4
|
| 13 |
+
pillow==12.1.1
|
| 14 |
+
safetensors==0.7.0
|
| 15 |
+
einops==0.8.2
|
| 16 |
+
opencv-python-headless==4.11.0.86
|
requirements/preprocess.txt
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Python 3.10; derived from the supplied preprocessing environment.
|
| 2 |
+
# Install the CUDA 12.8 PyTorch wheels first; see docs/INSTALL.md.
|
| 3 |
+
torch==2.7.0
|
| 4 |
+
torchvision==0.22.0
|
| 5 |
+
numpy==1.26.4
|
| 6 |
+
pillow==11.0.0
|
| 7 |
+
transformers==4.48.3
|
| 8 |
+
tokenizers==0.21.0
|
| 9 |
+
# The source environment's hub 0.25.1 violates Transformers' >=0.26 requirement.
|
| 10 |
+
huggingface-hub==0.36.2
|
| 11 |
+
safetensors==0.4.5
|
| 12 |
+
decord==0.6.0
|
| 13 |
+
imageio[ffmpeg]==2.37.0
|
| 14 |
+
imageio-ffmpeg==0.6.0
|
| 15 |
+
opencv-python==4.11.0.86
|
| 16 |
+
einops==0.8.1
|
| 17 |
+
omegaconf==2.3.0
|
| 18 |
+
hydra-core==1.3.2
|
| 19 |
+
timm==1.0.26
|
| 20 |
+
ftfy==6.1.1
|
| 21 |
+
iopath==0.1.10
|
| 22 |
+
regex==2024.9.11
|
| 23 |
+
tqdm==4.66.5
|
| 24 |
+
scipy==1.15.1
|
| 25 |
+
matplotlib==3.8.4
|
| 26 |
+
pycocotools==2.0.11
|
| 27 |
+
rerun-sdk==0.22.0
|
| 28 |
+
python-pycg==0.10.1
|
| 29 |
+
gdown==5.2.0
|
| 30 |
+
OpenEXR==3.2.4
|
| 31 |
+
kornia==0.8.0
|
| 32 |
+
viser==1.0.1
|
| 33 |
+
click==8.1.8
|
| 34 |
+
ninja==1.11.1.4
|
| 35 |
+
setuptools==70.2.0
|
| 36 |
+
wheel==0.46.3
|
| 37 |
+
# Install the pinned repository submodules separately, with these constraints.
|
requirements/train.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
-r inference.txt
|
| 2 |
+
datasets==4.8.4
|
| 3 |
+
deepspeed==0.18.8
|
| 4 |
+
trl==0.23.1
|
| 5 |
+
peft==0.18.1
|
| 6 |
+
# Public replacement for the internal wandb distribution in the source environment.
|
| 7 |
+
wandb==0.19.11
|
| 8 |
+
ninja==1.13.0
|
| 9 |
+
packaging==26.0
|
| 10 |
+
setuptools==80.10.2
|
| 11 |
+
wheel==0.46.3
|
| 12 |
+
# FlashAttention is a separate CUDA build; do not reuse the source .so file.
|