Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
4130e703
Unverified
Commit
4130e703
authored
Mar 08, 2023
by
amyeroberts
Committed by
GitHub
Mar 08, 2023
Browse files
VideoMAE doctest - use valid dummy pixel values (#22022)
Use valid dummy pixel values
parent
c1f85598
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/videomae/modeling_videomae.py
src/transformers/models/videomae/modeling_videomae.py
+1
-1
No files found.
src/transformers/models/videomae/modeling_videomae.py
View file @
4130e703
...
@@ -790,7 +790,7 @@ class VideoMAEForPreTraining(VideoMAEPreTrainedModel):
...
@@ -790,7 +790,7 @@ class VideoMAEForPreTraining(VideoMAEPreTrainedModel):
>>> import torch
>>> import torch
>>> num_frames = 16
>>> num_frames = 16
>>> video = list(np.random.rand
n(16
, 3, 224, 224))
>>> video = list(np.random.rand
int(0, 256, (num_frames
, 3, 224, 224))
)
>>> image_processor = AutoImageProcessor.from_pretrained("MCG-NJU/videomae-base")
>>> image_processor = AutoImageProcessor.from_pretrained("MCG-NJU/videomae-base")
>>> model = VideoMAEForPreTraining.from_pretrained("MCG-NJU/videomae-base")
>>> model = VideoMAEForPreTraining.from_pretrained("MCG-NJU/videomae-base")
...
...
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