Skip to content

Instantly share code, notes, and snippets.

@tchaton
Created May 11, 2021 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tchaton/6fc6ba4454a6d7aca0b790f8cbf38fe6 to your computer and use it in GitHub Desktop.
Save tchaton/6fc6ba4454a6d7aca0b790f8cbf38fe6 to your computer and use it in GitHub Desktop.
pytorchvideo_predict
# 7. Save / Load the model
trainer.save_checkpoint("video_classification.pt")
model = VideoClassifier.load_from_checkpoint("video_classification.pt")
# 8. Make a prediction
predictions = model.predict(os.path.join(flash.PROJECT_ROOT, "data/kinetics/predict"))
print(predictions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment