We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for your great work.
I trained model and I found that vgg16 is in upocr. but, in forward process upocr don't use vgg16 at all.
so, when loading my trained model, there are key error(trained model has vgg16, but eval process, vgg16 is disabled..)
def build(args): encoder = build_encoder(args) decoder = build_decoder(args) vgg16 = build_vgg16(args) if not args.eval else None ...
so I delete vgg16 my trained model ckpt in class Checkpointer(object) in def load
if self.distributed: model = model.module keys_to_delete = [key for key in checkpoint['model'] if key.startswith('vgg16')] for key in keys_to_delete: del checkpoint['model'][key] model.load_state_dict(checkpoint['model'])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Thanks for your great work.
I trained model and I found that vgg16 is in upocr. but, in forward process upocr don't use vgg16 at all.
so, when loading my trained model, there are key error(trained model has vgg16, but eval process, vgg16 is disabled..)
so I delete vgg16 my trained model ckpt in class Checkpointer(object) in def load
The text was updated successfully, but these errors were encountered: