Skip to content
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

the error of Create detector model #21

Open
ljl199711129 opened this issue Dec 24, 2021 · 0 comments
Open

the error of Create detector model #21

ljl199711129 opened this issue Dec 24, 2021 · 0 comments

Comments

@ljl199711129
Copy link


KeyError Traceback (most recent call last)
in
2 detector_pkl_file=pretrained_model_file,
3 use_rpn_head = use_rpn_head,
----> 4 use_mask_head = use_mask_head)
5 model = model.cuda()

/mnt/wifiperson-master/dataprocessing/detectorch/lib/model/detector.py in init(self, train, arch, conv_body_layers, conv_head_layers, fpn_layers, fpn_extra_lvl, use_rpn_head, use_mask_head, mask_head_type, roi_feature_channels, N_classes, detector_pkl_file, base_cnn_pkl_file, output_prob, roi_height, roi_width, roi_spatial_scale, roi_sampling_ratio)
224 # load pretrained weights
225 if detector_pkl_file is not None:
--> 226 self.load_pretrained_weights(detector_pkl_file, model='detector')
227 elif base_cnn_pkl_file is not None:
228 self.load_pretrained_weights(base_cnn_pkl_file, model='base_cnn')

/mnt/wifiperson-master/dataprocessing/detectorch/lib/model/detector.py in load_pretrained_weights(self, caffe_pkl_file, model)
306 model_dict[k]=torch.FloatTensor(caffe_data[k_caffe][:,(2, 1, 0),:,:])
307 else:
--> 308 model_dict[k]=torch.FloatTensor(caffe_data[k_caffe])
309 # update model
310 self.model.load_state_dict(model_dict)

KeyError: 'res_conv1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant