Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
95b3c381
Unverified
Commit
95b3c381
authored
May 16, 2024
by
Raushan Turganbay
Committed by
GitHub
May 16, 2024
Browse files
Video-LLaVa: Fix docs (#30855)
fix model id in docs
parent
1b3dba94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/en/model_doc/video_llava.md
docs/source/en/model_doc/video_llava.md
+2
-2
No files found.
docs/source/en/model_doc/video_llava.md
View file @
95b3c381
...
@@ -80,8 +80,8 @@ def read_video_pyav(container, indices):
...
@@ -80,8 +80,8 @@ def read_video_pyav(container, indices):
return
np
.
stack
([
x
.
to_ndarray
(
format
=
"rgb24"
)
for
x
in
frames
])
return
np
.
stack
([
x
.
to_ndarray
(
format
=
"rgb24"
)
for
x
in
frames
])
model
=
VideoLlavaForConditionalGeneration
.
from_pretrained
(
"
RaushanTurganbay/video-llava
-7
b
-hf"
,
device_map
=
"auto"
)
model
=
VideoLlavaForConditionalGeneration
.
from_pretrained
(
"
LanguageBind/Video-LLaVA
-7
B
-hf"
,
device_map
=
"auto"
)
processor
=
VideoLlavaProcessor
.
from_pretrained
(
"
RaushanTurganbay/video-llava
-7
b
-hf"
)
processor
=
VideoLlavaProcessor
.
from_pretrained
(
"
LanguageBind/Video-LLaVA
-7
B
-hf"
)
video_path
=
hf_hub_download
(
repo_id
=
"raushan-testing-hf/videos-test"
,
filename
=
"sample_demo_1.mp4"
,
repo_type
=
"dataset"
)
video_path
=
hf_hub_download
(
repo_id
=
"raushan-testing-hf/videos-test"
,
filename
=
"sample_demo_1.mp4"
,
repo_type
=
"dataset"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment