It seems you are loading a custom dict, which includes a few state_dicts. To check the weights (or any other parameter/buffer) of the models(s), you could use:
checkpoint = torch.load(...)
encoder_state_dict = checkpoint['encoder_state_dict']
print(encoder_state_dict[parameter_name])
# same for decoder_state_dict
Thank you so much for your reply , I am now able to load the weights thanks to you.
One extra question, I did exactly what you told me and this is what I got:
Do you have an idea about getting the prediction that is a paragraph from this output?
PS: The CTCloss is then computed to make the paragraph transcription and I can’t seem to figure out how it must be loaded.
I’m not familiar with your use case, but based on the output it seems you might be working on a sequence prediction task? If so, is each sample supposed to predict a word/token etc.?
In case you are using another repository as your code base, I would probably check if this repo might already implement a predict method.