C-3-Framework icon indicating copy to clipboard operation
C-3-Framework copied to clipboard

test.py error

Open Byronnar opened this issue 5 years ago • 3 comments

the model: 11-ResSFCN-101_all_ep_94_mae_26.8_mse_66.1.pth

Traceback (most recent call last): File "test.py", line 151, in main() File "test.py", line 50, in main test(file_list[0], model_path) File "test.py", line 56, in test net.load_state_dict(torch.load(model_path)) File "/home/byronnar/anaconda3/envs/dev/lib/python3.6/site-packages/torch/nn/modules/module.py", line 845, in load_state_dict self.class.name, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for CrowdCounter: 请问这个模型是不能不能使用么?

Byronnar avatar Jan 07 '20 08:01 Byronnar

Traceback (most recent call last): File "test.py", line 153, in main() File "test.py", line 50, in main test(file_list[0], model_path) IndexError: list index out of range 请问一下这个错误您是怎么解决的?谢谢

lizxko2009 avatar Jun 18 '20 10:06 lizxko2009

@lizxko2009 file list有问题,建议使用b进行调试。

gjy3035 avatar Jun 19 '20 15:06 gjy3035

Traceback (most recent call last): File "test.py", line 153, in main() File "test.py", line 50, in main test(file_list[0], model_path) IndexError: list index out of range 请问一下这个错误您是怎么解决的?谢谢

我也遇到了这个问题,请问你解决了吗

FCgogogo avatar Mar 21 '23 08:03 FCgogogo