mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
VideoMAE doctest - use valid dummy pixel values (#22022)
Use valid dummy pixel values
This commit is contained in:
parent
c1f85598eb
commit
4130e70367
@ -790,7 +790,7 @@ class VideoMAEForPreTraining(VideoMAEPreTrainedModel):
|
|||||||
>>> import torch
|
>>> import torch
|
||||||
|
|
||||||
>>> num_frames = 16
|
>>> num_frames = 16
|
||||||
>>> video = list(np.random.randn(16, 3, 224, 224))
|
>>> video = list(np.random.randint(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")
|
||||||
|
Loading…
Reference in New Issue
Block a user