-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to test my trained model? #37
Comments
Hello, have you solved this problem? @FJNU-LWP |
import argparse import torch def compute_top_k_accuracy(data_loader, model, cls_head, device, top_k=5):
def parse_args():
def replace_state_dict(state_dict): def init_from_kinetics_pretrain_(module, pretrain_pth):
def test_vivit_model(test_checkpoint_path):
if name == 'main': |
Hello, thank you very much for sharing this wonderful project!
I have now trained my own model and generated a .pth file using this code. How can I use this .pth file to test other data?
Looking forward to your response, and I would greatly appreciate it!
The text was updated successfully, but these errors were encountered: