I export the pytorch_mobilenetv2.pth to onnx , and convert it to IR (*.xml , *.bin), when the load the IR model I meet the error.
==============================================================================
C:\Users\10400\Desktop\MODNet-master\input-output>python infer_camera.py --xml onnx.xml
Traceback (most recent call last):
File "infer_camera.py", line 156, in
exec_net = ie.load_network(network=net, device_name='CPU')
File "ie_api.pyx", line 306, in openvino.inference_engine.ie_api.IECore.load_network
File "ie_api.pyx", line 315, in openvino.inference_engine.ie_api.IECore.load_network
RuntimeError:
Unsupported dynamic ops:
v3::NonZero NonZero_430 (Gather_4291168[0]:f32{1,270,480}) -> (i32{3,?})
v1::Transpose Transpose_431 (NonZero_430[0]:i32{3,?}, Constant_11970[0]:i32{2}) -> (i32{?,3})
v0::GatherIE GatherIE_20028 (Transpose_431[0]:i32{?,3}, Unsqueeze_20027[0]:i32{1}) -> (i32{?,1})
v0::Squeeze Gather_4331172 (GatherIE_20028[0]:i32{?,1}, Constant_22635[0]:i32{1}) -> (i32{?})
v1::Eltwise Mul_726/Fused_Mul_ (Gather_4331172[0]:i32{?}, Constant_11972[0]:i32{1}) -> (i32{?})
v0::GatherIE GatherIE_20035 (Transpose_431[0]:i32{?,3}, Unsqueeze_20034[0]:i32{1}) -> (i32{?,1})
v0::Squeeze Gather_4351192 (GatherIE_20035[0]:i32{?,1}, Constant_22636[0]:i32{1}) -> (i32{?})
v1::Eltwise Mul_728/Fused_Mul_ (Gather_4351192[0]:i32{?}, Constant_11974[0]:i32{1}) -> (i32{?})
v1::Eltwise Add_731 (Mul_726/Fused_Mul_[0]:i32{?}, Mul_728/Fused_Mul_[0]:i32{?}) -> (i32{?})
v0::GatherIE GatherIE_20042 (Transpose_431[0]:i32{?,3}, Unsqueeze_20041[0]:i32{1}) -> (i32{?,1})
v0::Squeeze Gather_4371154 (GatherIE_20042[0]:i32{?,1}, Constant_22637[0]:i32{1}) -> (i32{?})
v1::Eltwise Mul_733 (Gather_4371154[0]:i32{?}, Constant_11976[0]:i32{1}) -> (i32{?})
v1::Eltwise Add_734 (Add_731[0]:i32{?}, Mul_733[0]:i32{?}) -> (i32{?})
v1::Reshape Reshape_736 (Add_734[0]:i32{?}, Constant_11977[0]:i32{4}) -> (i32{?,1,1,1})
v0::ShapeOf ShapeOf_7572 (Transpose_431[0]:i32{?,3}) -> (i32{2})
v1::Broadcast Broadcast_9974 (Constant_11978[0]:i32{1}, Where_748[0]:i32{4}, Constant_9973[0]:u8{}) -> (i32{?,?,?,?})
v1::Eltwise Expand_749 (Reshape_736[0]:i32{?,1,1,1}, Broadcast_9974[0]:i32{?,?,?,?}) -> (i32{?,?,?,?})
v1::Broadcast Broadcast_9978 (Constant_11988[0]:i32{1}, Where_764[0]:i32{4}, Constant_9977[0]:u8{}) -> (i32{?,?,?,?})
v1::Eltwise Expand_765 (Constant_11987[0]:i32{1,4,4,4}, Broadcast_9978[0]:i32{?,?,?,?}) -> (i32{?,?,?,?})
v1::Eltwise Add_766 (Expand_749[0]:i32{?,?,?,?}, Expand_765[0]:i32{?,?,?,?}) -> (i32{?,?,?,?})
v1::Reshape Reshape_770 (Add_766[0]:i32{?,?,?,?}, Constant_11994[0]:i32{1}) -> (i32{?})
v0::Convert Cast_467 (Gather_4331172[0]:i32{?}) -> (f32{?})
v1::Reshape Unsqueeze_494/Unsqueeze (Cast_467[0]:f32{?}, Constant_12000[0]:i32{2}) -> (f32{?,1})
v0::Convert Cast_469 (Gather_4371154[0]:i32{?}) -> (f32{?})
v1::PowerIE Sub_473 (Cast_469[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_495/Unsqueeze (Sub_473[0]:f32{?}, Constant_12001[0]:i32{2}) -> (f32{?,1})
v0::Convert Cast_468 (Gather_4351192[0]:i32{?}) -> (f32{?})
v1::PowerIE Sub_477 (Cast_468[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_496/Unsqueeze (Sub_477[0]:f32{?}, Constant_12002[0]:i32{2}) -> (f32{?,1})
v1::PowerIE Add_481/Fused_Add_ (Cast_469[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_497/Unsqueeze (Add_481/Fused_Add_[0]:f32{?}, Constant_12003[0]:i32{2}) -> (f32{?,1})
v1::PowerIE Add_489/Fused_Add_ (Cast_468[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_498/Unsqueeze (Add_489/Fused_Add_[0]:f32{?}, Constant_12004[0]:i32{2}) -> (f32{?,1})
v0::Concat Concat_499 (Unsqueeze_494/Unsqueeze[0]:f32{?,1}, Unsqueeze_495/Unsqueeze[0]:f32{?,1}, Unsqueeze_496/Unsqueeze[0]:f32{?,1}, Unsqueeze_497/Unsqueeze[0]:f32{?,1}, Unsqueeze_498/Unsqueeze[0]:f32{?,1}) -> (f32{?,5})
v0::GatherIE Gather_5051212 (Concat_499[0]:f32{?,5}, Gather_5051212/Cast_141935_const[0]:i32{4}) -> (f32{?,4})
v0::GatherIE Gather_5011142 (Concat_499[0]:f32{?,5}, Gather_5011142/Cast_141827_const[0]:i32{1}) -> (f32{?,1})
v1::Reshape Squeeze_502 (Gather_5011142[0]:f32{?,1}, Constant_12007[0]:i32{1}) -> (f32{?})
v0::Convert Cast_503 (Squeeze_502[0]:f32{?}) -> (i32{?})
v3::ROIAlign RoiAlign_506 (Pad_466[0]:f32{1,36,546,966}, Gather_5051212[0]:f32{?,4}, Cast_503[0]:i32{?}) -> (f32{?,36,8,8})
v0::Convert Cast_535 (Gather_4331172[0]:i32{?}) -> (f32{?})
v1::Reshape Unsqueeze_562/Unsqueeze (Cast_535[0]:f32{?}, Constant_12010[0]:i32{2}) -> (f32{?,1})
v0::Convert Cast_537 (Gather_4371154[0]:i32{?}) -> (f32{?})
v1::PowerIE Sub_541 (Cast_537[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_563/Unsqueeze (Sub_541[0]:f32{?}, Constant_12011[0]:i32{2}) -> (f32{?,1})
v0::Convert Cast_536 (Gather_4351192[0]:i32{?}) -> (f32{?})
v1::PowerIE Sub_545 (Cast_536[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_564/Unsqueeze (Sub_545[0]:f32{?}, Constant_12012[0]:i32{2}) -> (f32{?,1})
v1::PowerIE Add_549/Fused_Add_ (Cast_537[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_565/Unsqueeze (Add_549/Fused_Add_[0]:f32{?}, Constant_12013[0]:i32{2}) -> (f32{?,1})
v1::PowerIE Add_557/Fused_Add_ (Cast_536[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_566/Unsqueeze (Add_557/Fused_Add_[0]:f32{?}, Constant_12014[0]:i32{2}) -> (f32{?,1})
v0::Concat Concat_567 (Unsqueeze_562/Unsqueeze[0]:f32{?,1}, Unsqueeze_563/Unsqueeze[0]:f32{?,1}, Unsqueeze_564/Unsqueeze[0]:f32{?,1}, Unsqueeze_565/Unsqueeze[0]:f32{?,1}, Unsqueeze_566/Unsqueeze[0]:f32{?,1}) -> (f32{?,5})
v0::GatherIE Gather_5731148 (Concat_567[0]:f32{?,5}, Gather_5731148/Cast_141837_const[0]:i32{4}) -> (f32{?,4})
v0::GatherIE Gather_5691150 (Concat_567[0]:f32{?,5}, Gather_5691150/Cast_141763_const[0]:i32{1}) -> (f32{?,1})
v1::Reshape Squeeze_570 (Gather_5691150[0]:f32{?,1}, Constant_12017[0]:i32{1}) -> (f32{?})
v0::Convert Cast_571 (Squeeze_570[0]:f32{?}) -> (i32{?})
v3::ROIAlign RoiAlign_574 (Pad_534[0]:f32{1,6,546,966}, Gather_5731148[0]:f32{?,4}, Cast_571[0]:i32{?}) -> (f32{?,6,8,8})
v0::Concat Concat_575 (RoiAlign_506[0]:f32{?,36,8,8}, RoiAlign_574[0]:f32{?,6,8,8}) -> (f32{?,42,8,8})
v1::ConvolutionIE Conv_576 (Concat_575[0]:f32{?,42,8,8}, 1524/Output_0/Data__const[0]:f32{24,42,3,3}, Reshape_18829[0]:f32{24}) -> (f32{?,24,6,6})
v0::Relu Relu_577 (Conv_576[0]:f32{?,24,6,6}) -> (f32{?,24,6,6})
v1::ConvolutionIE Conv_578 (Relu_577[0]:f32{?,24,6,6}, 1527/Output_0/Data__const[0]:f32{16,24,3,3}, Reshape_18832[0]:f32{16}) -> (f32{?,16,4,4})
v0::Relu Relu_579 (Conv_578[0]:f32{?,16,4,4}) -> (f32{?,16,4,4})
v0::ShapeOf ShapeOf_5939 (Relu_579[0]:f32{?,16,4,4}) -> (i32{4})
v0::ShapeOf ShapeOf_5947 (Relu_579[0]:f32{?,16,4,4}) -> (i32{4})
v4::Interpolate Resize_588 (Relu_579[0]:f32{?,16,4,4}, Resize_588/StridedSlice_sizes[0]:i32{2}, Resize_588/StridedSlice_scales[0]:f32{2}, Constant_12040[0]:i32{2}) -> (f32{?,16,?,?})
v0::Convert Cast_604 (Gather_4331172[0]:i32{?}) -> (f32{?})
v1::Reshape Unsqueeze_631/Unsqueeze (Cast_604[0]:f32{?}, Constant_12041[0]:i32{2}) -> (f32{?,1})
v0::Convert Cast_606 (Gather_4371154[0]:i32{?}) -> (f32{?})
v1::PowerIE Sub_610 (Cast_606[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_632/Unsqueeze (Sub_610[0]:f32{?}, Constant_12042[0]:i32{2}) -> (f32{?,1})
v0::Convert Cast_605 (Gather_4351192[0]:i32{?}) -> (f32{?})
v1::PowerIE Sub_614 (Cast_605[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_633/Unsqueeze (Sub_614[0]:f32{?}, Constant_12043[0]:i32{2}) -> (f32{?,1})
v1::PowerIE Add_618/Fused_Add_ (Cast_606[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_634/Unsqueeze (Add_618/Fused_Add_[0]:f32{?}, Constant_12044[0]:i32{2}) -> (f32{?,1})
v1::PowerIE Add_626/Fused_Add_ (Cast_605[0]:f32{?}) -> (f32{?})
v1::Reshape Unsqueeze_635/Unsqueeze (Add_626/Fused_Add_[0]:f32{?}, Constant_12045[0]:i32{2}) -> (f32{?,1})
v0::Concat Concat_636 (Unsqueeze_631/Unsqueeze[0]:f32{?,1}, Unsqueeze_632/Unsqueeze[0]:f32{?,1}, Unsqueeze_633/Unsqueeze[0]:f32{?,1}, Unsqueeze_634/Unsqueeze[0]:f32{?,1}, Unsqueeze_635/Unsqueeze[0]:f32{?,1}) -> (f32{?,5})
v0::GatherIE Gather_6421190 (Concat_636[0]:f32{?,5}, Gather_6421190/Cast_141661_const[0]:i32{4}) -> (f32{?,4})
v0::GatherIE Gather_6381180 (Concat_636[0]:f32{?,5}, Gather_6381180/Cast_141955_const[0]:i32{1}) -> (f32{?,1})
v1::Reshape Squeeze_639 (Gather_6381180[0]:f32{?,1}, Constant_12048[0]:i32{1}) -> (f32{?})
v0::Convert Cast_640 (Squeeze_639[0]:f32{?}) -> (i32{?})
v3::ROIAlign RoiAlign_643 (Pad_603[0]:f32{1,6,1084,1924}, Gather_6421190[0]:f32{?,4}, Cast_640[0]:i32{?}) -> (f32{?,6,8,8})
v0::Concat Concat_644 (Resize_588[0]:f32{?,16,?,?}, RoiAlign_643[0]:f32{?,6,8,8}) -> (f32{?,22,8,8})
v1::ConvolutionIE Conv_645 (Concat_644[0]:f32{?,22,8,8}, 1530/Output_0/Data__const[0]:f32{12,22,3,3}, Reshape_18835[0]:f32{12}) -> (f32{?,12,6,6})
v0::Relu Relu_646 (Conv_645[0]:f32{?,12,6,6}) -> (f32{?,12,6,6})
v1::ConvolutionIE Conv_647 (Relu_646[0]:f32{?,12,6,6}, refiner.conv4.weight/Output_0/Data__const[0]:f32{4,12,3,3}, Reshape_18838[0]:f32{4}) -> (f32{?,4,4,4})
v1::Reshape Reshape_772 (Conv_647[0]:f32{?,4,4,4}, Constant_12049[0]:i32{1}) -> (f32{?})
v3::ScatterElementsUpdate ScatterElements_773 (Reshape_768[0]:f32{8294400}, Reshape_770[0]:i32{?}, Reshape_772[0]:f32{?}, Constant_12050[0]:i32{}) -> (f32{8294400})