nielsr HF staff commited on
Commit
8aaf40e
1 Parent(s): e040485

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -26,10 +26,10 @@ import torch
26
 
27
  video = list(np.random.randn(8, 3, 224, 224))
28
 
29
- feature_extractor = AutoImageProcessor.from_pretrained("facebook/timesformer-base-finetuned-k400")
30
  model = TimesformerForVideoClassification.from_pretrained("facebook/timesformer-base-finetuned-k400")
31
 
32
- inputs = feature_extractor(video, return_tensors="pt")
33
 
34
  with torch.no_grad():
35
  outputs = model(**inputs)
 
26
 
27
  video = list(np.random.randn(8, 3, 224, 224))
28
 
29
+ processor = AutoImageProcessor.from_pretrained("facebook/timesformer-base-finetuned-k400")
30
  model = TimesformerForVideoClassification.from_pretrained("facebook/timesformer-base-finetuned-k400")
31
 
32
+ inputs = processor(video, return_tensors="pt")
33
 
34
  with torch.no_grad():
35
  outputs = model(**inputs)