I trained a model using this github repository. It's a CRNN[10] model and I want to use it now to make predictions. With what I've read, I need to excecute this:
model = TheModelClass(*args, **kwargs)
model.load_state_dict(torch.load(PATH))
model.eval()
To do that I need the model class of my network. How do I know what class I have? I tried torchvision.models.crnn() and torchvision.models.crnn10(), but both of these don't work. Can anyone tell me how I can load my model?
Model, inherited fromnn.Moduledefined in their repository : github.com/clovaai/deep-text-recognition-benchmark/blob/master/…