You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurs when I compile a customized PDPD model (Deformable DETR). How could I solve it?
Traceback (most recent call last):
File "test_chartdetr.py", line 227, in <module>
ov_model = core.compile_model(ov_model, device_name="CPU")
File "path_to_openvino\python\python3.8\openvino\runtime\ie_api.py", line 398, in compile_model
super().compile_model(model, device_name, {} if config is None else config),
RuntimeError: Check 'false' failed at path_to_openvino\src\inference\src\core.cpp:117:
Check 'invalid_axis == axes.cend()' failed at path_to_openvino\src\core\src\validation_util.cpp:885:
While validating node 'opset1::Squeeze Squeeze_33153 (TopK_33152[1]:i32[?,?,1], Constant_33151[0]:i32[]) -> (i64[?,?])' with friendly_name 'Squeeze_33153':
Parameter axis 2147483647 out of the tensor rank range [-3, 2].
Steps to reproduce
The customized model has the same framework with DETR except detr_head and post_process.
@Iffa-Meah
Thank you! I have found an error about tensor indexes in my code, which caused the above problem. After I fixed it,Openvino can successfully read can compile the PDPD model.
Maybe this issue can be closed.
@xuewenyuan thanks for informing & glad that your issue is resolved.
Closing issue, feel free to re-open or start a new issue if additional assistance is needed.
System information (version)
Detailed description
An error occurs when I compile a customized PDPD model (Deformable DETR). How could I solve it?
Steps to reproduce
The customized model has the same framework with DETR except detr_head and post_process.
Issue submission checklist
The text was updated successfully, but these errors were encountered: