Closed Meriem-DAHMANI closed 5 months ago
When running this command :
CUDA_VISIBLE_DEVICES=0 python3 demo.py --Transformation TPS --FeatureExtraction ResNet --SequenceModeling BiLSTM --Prediction Attn --image_folder demo_image/ --saved_model models/None-VGG-BiLSTM-CTC.pth
I am having this error :
self.__class__.__name__, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for DataParallel: Missing key(s) in state_dict: "module.Transformation.LocalizationNetwork.conv.0.weight",
Issue solved : i updated demo.py :
model.load_state_dict(torch.load(opt.saved_model, map_location=device), strict=False)
When running this command :
I am having this error :