Update README.md
This commit is contained in:
parent
422e706f9b
commit
4800870825
|
@ -34,8 +34,8 @@ import torch
|
|||
|
||||
video = list(np.random.randn(16, 3, 224, 224))
|
||||
|
||||
feature_extractor = VideoMAEFeatureExtractor.from_pretrained("MCG-NJU/videomae-base")
|
||||
model = VideoMAEForVideoClassification.from_pretrained("MCG-NJU/videomae-base")
|
||||
feature_extractor = VideoMAEFeatureExtractor.from_pretrained("MCG-NJU/videomae-base-finetuned-kinetics")
|
||||
model = VideoMAEForVideoClassification.from_pretrained("MCG-NJU/videomae-base-finetuned-kinetics")
|
||||
|
||||
inputs = feature_extractor(video, return_tensors="pt")
|
||||
|
||||
|
|
Loading…
Reference in New Issue