Created
May 11, 2021 11:18
-
-
Save tchaton/6fc6ba4454a6d7aca0b790f8cbf38fe6 to your computer and use it in GitHub Desktop.
pytorchvideo_predict
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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