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

测试报错 #23

Open
foralliance opened this issue Dec 4, 2018 · 3 comments
Open

测试报错 #23

foralliance opened this issue Dec 4, 2018 · 3 comments

Comments

@foralliance
Copy link

@qijiezhao HI

测试时,执行
CUDA_VISIBLE_DEVICES=0 python test.py --config configs/cfenet300_vgg16.py -d COCO -m=weights/cfenet300_vgg16_coco.pth

报错:

Traceback (most recent call last):
  File "test.py", line 136, in <module>
    net.load_state_dict(new_state_dict)
  File "/home/jmx/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 721, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for CFENet:
	Unexpected key(s) in state_dict: "Norm.num_batches_tracked", "reduce1.bn.num_batches_tracked", "up_reduce1.bn.num_batches_tracked", "reduce2.bn.num_batches_tracked", "up_reduce2.bn.num_batches_tracked", "arterial.0.cfem_a.0.bn.num_batches_tracked", "arterial.0.cfem_a.1.bn.num_batches_tracked", "arterial.0.cfem_a.2.bn.num_batches_tracked", "arterial.0.cfem_a.3.bn.num_batches_tracked", "arterial.0.cfem_a.4.bn.num_batches_tracked", "arterial.0.cfem_b.0.bn.num_batches_tracked", "arterial.0.cfem_b.1.bn.num_batches_tracked", "arterial.0.cfem_b.2.bn.num_batches_tracked", "arterial.0.cfem_b.3.bn.num_batches_tracked", "arterial.0.cfem_b.4.bn.num_batches_tracked", "arterial.0.ConvLinear.bn.num_batches_tracked", "arterial.0.shortcut.bn.num_batches_tracked", "arterial.1.cfem_a.0.bn.num_batches_tracked", "arterial.1.cfem_a.1.bn.num_batches_tracked", "arterial.1.cfem_a.2.bn.num_batches_tracked", "arterial.1.cfem_a.3.bn.num_batches_tracked", "arterial.1.cfem_a.4.bn.num_batches_tracked", "arterial.1.cfem_b.0.bn.num_batches_tracked", "arterial.1.cfem_b.1.bn.num_batches_tracked", "arterial.1.cfem_b.2.bn.num_batches_tracked", "arterial.1.cfem_b.3.bn.num_batches_tracked", "arterial.1.cfem_b.4.bn.num_batches_tracked", "arterial.1.ConvLinear.bn.num_batches_tracked", "arterial.1.shortcut.bn.num_batches_tracked", "arterial.2.cfem_a.0.bn.num_batches_tracked", "arterial.2.cfem_a.1.bn.num_batches_tracked", "arterial.2.cfem_a.2.bn.num_batches_tracked", "arterial.2.cfem_a.3.bn.num_batches_tracked", "arterial.2.cfem_a.4.bn.num_batches_tracked", "arterial.2.cfem_b.0.bn.num_batches_tracked", "arterial.2.cfem_b.1.bn.num_batches_tracked", "arterial.2.cfem_b.2.bn.num_batches_tracked", "arterial.2.cfem_b.3.bn.num_batches_tracked", "arterial.2.cfem_b.4.bn.num_batches_tracked", "arterial.2.ConvLinear.bn.num_batches_tracked", "arterial.2.shortcut.bn.num_batches_tracked", "arterial.3.cfem_a.0.bn.num_batches_tracked", "arterial.3.cfem_a.1.bn.num_batches_tracked", "arterial.3.cfem_a.2.bn.num_batches_tracked", "arterial.3.cfem_a.3.bn.num_batches_tracked", "arterial.3.cfem_a.4.bn.num_batches_tracked", "arterial.3.cfem_b.0.bn.num_batches_tracked", "arterial.3.cfem_b.1.bn.num_batches_tracked", "arterial.3.cfem_b.2.bn.num_batches_tracked", "arterial.3.cfem_b.3.bn.num_batches_tracked", "arterial.3.cfem_b.4.bn.num_batches_tracked", "arterial.3.ConvLinear.bn.num_batches_tracked", "arterial.3.shortcut.bn.num_batches_tracked", "lateral.0.cfem_a.0.bn.num_batches_tracked", "lateral.0.cfem_a.1.bn.num_batches_tracked", "lateral.0.cfem_a.2.bn.num_batches_tracked", "lateral.0.cfem_a.3.bn.num_batches_tracked", "lateral.0.cfem_a.4.bn.num_batches_tracked", "lateral.0.cfem_b.0.bn.num_batches_tracked", "lateral.0.cfem_b.1.bn.num_batches_tracked", "lateral.0.cfem_b.2.bn.num_batches_tracked", "lateral.0.cfem_b.3.bn.num_batches_tracked", "lateral.0.cfem_b.4.bn.num_batches_tracked", "lateral.0.ConvLinear.bn.num_batches_tracked", "lateral.0.shortcut.bn.num_batches_tracked", "lateral.1.cfem_a.0.bn.num_batches_tracked", "lateral.1.cfem_a.1.bn.num_batches_tracked", "lateral.1.cfem_a.2.bn.num_batches_tracked", "lateral.1.cfem_a.3.bn.num_batches_tracked", "lateral.1.cfem_a.4.bn.num_batches_tracked", "lateral.1.cfem_b.0.bn.num_batches_tracked", "lateral.1.cfem_b.1.bn.num_batches_tracked", "lateral.1.cfem_b.2.bn.num_batches_tracked", "lateral.1.cfem_b.3.bn.num_batches_tracked", "lateral.1.cfem_b.4.bn.num_batches_tracked", "lateral.1.ConvLinear.bn.num_batches_tracked", "lateral.1.shortcut.bn.num_batches_tracked".

感觉提供的模型(cfenet300_vgg16_coco.pth)有问题

@liuqinglong110
Copy link

您好,我现在看不到代码,方便给个链接吗?

@qijiezhao
Copy link
Collaborator

qijiezhao commented Jan 10, 2019 via email

@liuqinglong110
Copy link

liuqinglong110 commented Jan 10, 2019 via email

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

3 participants