nielsr HF staff commited on
Commit
b5dfd1b
1 Parent(s): 0c5eb2c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -20,13 +20,13 @@ You can use the raw model for video classification into one of the 400 possible
20
  Here is how to use this model to classify a video:
21
 
22
  ```python
23
- from transformers import VideoMAEFeatureExtractor, TimesformerForVideoClassification
24
  import numpy as np
25
  import torch
26
 
27
  video = list(np.random.randn(8, 3, 224, 224))
28
 
29
- feature_extractor = VideoMAEFeatureExtractor.from_pretrained("MCG-NJU/videomae-base-finetuned-kinetics")
30
  model = TimesformerForVideoClassification.from_pretrained("facebook/timesformer-base-finetuned-k400")
31
 
32
  inputs = feature_extractor(video, return_tensors="pt")
 
20
  Here is how to use this model to classify a video:
21
 
22
  ```python
23
+ from transformers import AutoImageProcessor, TimesformerForVideoClassification
24
  import numpy as np
25
  import torch
26
 
27
  video = list(np.random.randn(8, 3, 224, 224))
28
 
29
+ feature_extractor = AutoImageProcessor.from_pretrained("MCG-NJU/videomae-base-finetuned-kinetics")
30
  model = TimesformerForVideoClassification.from_pretrained("facebook/timesformer-base-finetuned-k400")
31
 
32
  inputs = feature_extractor(video, return_tensors="pt")