×
分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

python detect.py --jit True --save True 解决中 bonjour2022-07-22 10:36:22 回复 2 查看 使用求助
python detect.py --jit True --save True
分享到:

问题

CNML: 7.9.114 06a1920
CNRT: 4.7.12 03ea1d9
2022-07-22 10:23:05.707609: [cnrtWarning] [18161] [Card : NONE] Failed to initialize CNDEV. Host manage interface disabled
2022-07-22 10:23:05.709515: [cnrtError] [18161] [Card : NONE] No MLU can be found !
2022-07-22 10:23:05.709521: [cnmlError] No MLU device
2022-07-22 10:23:05.709650: [cnmlError] No MLU device
Using CPU


                 from  n    params  module                                  arguments                     
  0                -1  1      3520  common.Focus                            [3, 32, 3]                    
  1                -1  1     18560  common.Conv                             [32, 64, 3, 2]                
  2                -1  1     19904  common.BottleneckCSP                    [64, 64, 1]                   
  3                -1  1     73984  common.Conv                             [64, 128, 3, 2]               
  4                -1  1    161152  common.BottleneckCSP                    [128, 128, 3]                 
  5                -1  1    295424  common.Conv                             [128, 256, 3, 2]              
  6                -1  1    641792  common.BottleneckCSP                    [256, 256, 3]                 
  7                -1  1   1180672  common.Conv                             [256, 512, 3, 2]              
  8                -1  1    656896  common.SPP                              [512, 512, [5, 9, 13]]        
  9                -1  1   1248768  common.BottleneckCSP                    [512, 512, 1, False]          
 10                -1  1    131584  common.Conv                             [512, 256, 1, 1]              
 11                -1  1         0  torch.nn.modules.upsampling.Upsample    [None, 2, 'nearest']          
 12           [-1, 6]  1         0  common.Concat                           [1]                           
 13                -1  1    378624  common.BottleneckCSP                    [512, 256, 1, False]          
 14                -1  1     33024  common.Conv                             [256, 128, 1, 1]              
 15                -1  1         0  torch.nn.modules.upsampling.Upsample    [None, 2, 'nearest']          
 16           [-1, 4]  1         0  common.Concat                           [1]                           
 17                -1  1     95104  common.BottleneckCSP                    [256, 128, 1, False]          
 18                -1  1    147712  common.Conv                             [128, 128, 3, 2]              
 19          [-1, 14]  1         0  common.Concat                           [1]                           
 20                -1  1    313088  common.BottleneckCSP                    [256, 256, 1, False]          
 21                -1  1    590336  common.Conv                             [256, 256, 3, 2]              
 22          [-1, 10]  1         0  common.Concat                           [1]                           
 23                -1  1   1248768  common.BottleneckCSP                    [512, 512, 1, False]          
 24      [17, 20, 23]  1    229245  yolo.Detect                             [80, [[10, 13, 16, 30, 33, 23], [30, 61, 62, 45, 59, 119], [116, 90, 156, 198, 373, 326]], [128, 256, 512]]
Model Summary: 191 s, 7.46816e+06 parameters, 7.46816e+06 gradients

i am here i am here i am here
2022-07-22 10:23:06.908345: [cnrtError] [18161] [Card : NONE] input param  is invalid device handle in cnrtSetCurrentDevice
2022-07-22 10:23:06.908361: [cnrtError] [18161] [Card : NONE] input param  is invalid device handle in cnrtSetCurrentDevice
how are you how are are you how are you
torch.Size([1, 3, 640, 640])
2022-07-22 10:23:06.922453: [cnrtError] [18161] [Card : NONE] input param  is invalid device handle in cnrtSetCurrentDevice
2022-07-22 10:23:07.253737: [cnrtError] [18161] [Card : NONE] input param  is invalid device handle in cnrtSetCurrentDevice
Traceback (most recent call last):
  File "detect.py", line 139, in <module>
    detect_out = quantized_net(img.to(ct.set_device(-1)))
  File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
RuntimeError: outputs_[i]->uses().empty() INTERNAL ASSERT FAILED at /pytorch/torch/csrc/jit/ir.cpp:1027, please report a bug to PyTorch.  (eraseOutput at /pytorch/torch/csrc/jit/ir.cpp:1027)
#0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0x57 (0x7f931f801237 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libc10.so)
#1: torch::jit::Node::eraseOutput(unsigned long) + 0x1eb (0x7f93082d544b in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#2: torch::jit::Node::destroy() + 0x24 (0x7f93082d5f44 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#3: torch::jit::SubgraphUtils::mergeNodeIntoSubgraph(torch::jit::Node*, torch::jit::Node*) + 0x14c5 (0x7f93083e5215 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#4: torch_mlu::jit::buildSubgraph(std::shared_ptr<torch::jit::Graph>&, std::vector<torch::jit::Node*, std::allocator<torch::jit::Node*> >, std::vector<torch_mlu::jit::group, std::allocator<torch_mlu::jit::group> >) + 0x1d3 (0x7f9303cd4123 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch_mlu/csrc/lib/libjit_mlu.so)
#5: torch_mlu::jit::SegmentGraph(std::shared_ptr<torch::jit::Graph>&) + 0x1b4 (0x7f9303cd9324 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch_mlu/csrc/lib/libjit_mlu.so)
#6: <unknown function> + 0x2e04750 (0x7f930828f750 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#7: <unknown function> + 0x2e0dd22 (0x7f9308298d22 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#8: <unknown function> + 0x2e0edc5 (0x7f9308299dc5 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#9: <unknown function> + 0x2e0ef9b (0x7f9308299f9b in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#10: <unknown function> + 0x2e06499 (0x7f9308291499 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#11: torch::jit::Function::run(std::vector<c10::IValue, std::allocator<c10::IValue> >&) + 0x63 (0x7f93085552a3 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch.so)
#12: <unknown function> + 0x5bcc70 (0x7f930af96c70 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch_python.so)
#13: <unknown function> + 0x5bd545 (0x7f930af97545 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch_python.so)
#14: <unknown function> + 0x58e4f4 (0x7f930af684f4 in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch_python.so)
#15: <unknown function> + 0x1e363a (0x7f930abbd63a in /torch/venv3/pytorch/lib/python3.6/site-packages/torch/lib/libtorch_python.so)
<omitting python s>
#39: __libc_start_main + 0xf0 (0x7f9323f0f840 in /lib/x86_64-linux-gnu/libc.so.6)

版权所有 © 2022 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭