YonghaoHe / LFD-A-Light-and-Fast-Detector

LFD is a big update upon LFFD. Generally, LFD is a multi-class object detector characterized by lightweight, low inference latency and superior precision. It is for real-world appilcations.
418 stars 82 forks source link

[WARNING: ResNet pretrained weights load] unexpected keys: #36

Open XiaomuWang opened 3 years ago

XiaomuWang commented 3 years ago

When I showed the warning as shown in the title during training and prediction, I found that my dist.is_initialized() is False. How should I solve it?

XiaomuWang commented 3 years ago

[WARNING: ResNet pretrained weights load] unexpected keys: _neck.neck0.0.weight _neck.neck0.1.weight _neck.neck0.1.bias _neck.neck0.1.running_mean _neck.neck0.1.running_var _neck.neck0.1.num_batches_tracked _neck.neck1.0.weight _neck.neck1.1.weight _neck.neck1.1.bias neck.neck1.1.running mean _neck.neck1.1.running_var _neck.neck1.1.num_batches_tracked _neck.neck2.0.weight _neck.neck2.1.weight _neck.neck2.1.bias _neck.neck2.1.running_mean _neck.neck2.1.running_var _neck.neck2.1.num_batches_tracked _neck.neck3.0.weight _neck.neck3.1.weight _neck.neck3.1.bias _neck.neck3.1.running_mean _neck.neck3.1.running_var _neck.neck3.1.num_batches_tracked _neck.neck4.0.weight _neck.neck4.1.weight _neck.neck4.1.bias _neck.neck4.1.running_mean _neck.neck4.1.running_var _neck.neck4.1.num_batches_tracked _head._scales.0._scale _head._scales.1._scale _head._scales.2._scale _head._scales.3._scale _head._scales.4._scale _head.head0_classification_path.0.weight _head.head0_classification_path.0.bia_head.head0_regression_path.0.weight _head.head0_regression_path.0.bias _head.head0_merge_path.0.weight _head.head0_merge_path.1.weight _head.head0_merge_path.1.bias _head.head0_merge_path.3.weight _head.head0_merge_path.4.weight _head.head0_merge_path.4.bias_head.head1_classification_path.0.weight _head.head1_classification_path.0.bias _head.head1_regression_path.0.weight _head.head1_regression_path.0.bias _head.head1_merge_path.0.weight _head.head1_merge_path.1.weight _head.head1_merge_path.1.bias _head.head1_merge_path.3.weight _head.head1_merge_path.4.weight _head.head1_merge_path.4.bias _head.head2_classification_path.0.weight _head.head2_classification_path.0.bias _head.head2_regression_path.0.weight _head.head2_regression_path.0.bias _head.head2_merge_path.0.weight _head.head2_merge_path.1.weight _head.head2_merge_path.1.bias _head.head2_merge_path.3.weight _head.head2_merge_path.4.weight _head.head2_merge_path.4.bias _head.head3_classification_path.0.weight _head.head3_classification_path.0.bia_head.head3_regression_path.0.weight _head.head3_regression_path.0.bias _head.head3_merge_path.0.weight _head.head3_merge_path.1.weight _head.head3_merge_path.1.bias _head.head3_merge_path.3.weight _head.head3_merge_path.4.weight _head.head3_merge_path.4.bias_head.head4_classification_path.0.weight _head.head4_classification_path.0.bias _head.head4_regression_path.0.weight _head.head4_regression_path.0.bias _head.head4_merge_path.0.weight _head.head4_merge_path.1.weight _head.head4_merge_path.1.bias _head.head4_merge_path.3.weight _head.head4_merge_path.4.weight _head.head4_merge_path.4.biasimage: [[[ 31 33 26]

YonghaoHe commented 3 years ago

@XiaomuWang make sure that the naming is identical with the model