一、问题现象(附报错日志上下文):
/usr/local/miniconda3/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")
OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'
Traceback (most recent call last):
File "/usr/local/miniconda3/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/miniconda3/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/HwHiAiUser/project/monitor/monitor/Fight_Detection/infer.py", line 41, in
main()
File "/home/HwHiAiUser/project/monitor/monitor/Fight_Detection/infer.py", line 31, in main
predict_on_video(args.inputPath, args.outputPath, model, args.sequenceLength, args.skip, args.showInfo)
File "/home/HwHiAiUser/project/monitor/monitor/Fight_Detection/UtilsFiles/Fight_utils.py", line 382, in predict_on_video
predicted_class_name= PredTopKClass(1,frames_queue, model)
File "/home/HwHiAiUser/project/monitor/monitor/Fight_Detection/UtilsFiles/Fight_utils.py", line 257, in PredTopKClass
outputs = model(input_frames)
File "/usr/local/miniconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/miniconda3/lib/python3.9/site-packages/torchvision/models/video/resnet.py", line 251, in forward
x = self.stem(x)
File "/usr/local/miniconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/miniconda3/lib/python3.9/site-packages/torch/nn/modules/container.py", line 141, in forward
input = module(input)
File "/usr/local/miniconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/miniconda3/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 592, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/usr/local/miniconda3/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 587, in _conv_forward
return F.conv3d(
RuntimeError: InnerRun:build/CMakeFiles/torch_npu.dir/compiler_depend.ts:215 NPU error, error code is 500002
[Error]: A GE error occurs in the system.
Rectify the fault based on the error information in the ascend log.
EZ3002: Optype [Conv3D] of Ops kernel [AIcoreEngine] is unsupported. Reason: [Static shape check]:data type DT_FLOAT of input [x] is not supported. All supported data type and format of tensor input0.x is: Data Type: {DT_FLOAT16,DT_INT8}Format:{NDC1HWC0,NDC1HWC0}[tbe-custom]:op type Conv3D is not found in this op store.[tbe-builtin]:[Static shape check]:data type DT_FLOAT of input [x] is not supported. All supported data type and format of tensor input0.x is: Data Type: {DT_FLOAT16,DT_INT8}Format:{NDC1HWC0,NDC1HWC0}.
Possible Cause: The operator type is unsupported in the operator information library due to specification mismatch.
Solution: Submit an issue to request for support at https://gitee.com/ascend, or remove this type of operators from your model.
TraceBack (most recent call last):
No supported Ops kernel and engine are found for [Conv3D36], optype [Conv3D].
build graph failed, graph id:35, ret:-1[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1615]
[Build][SingleOpModel]call ge interface generator.BuildSingleOpModel failed. ge result = 4294967295[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
[Build][Op]Fail to build op model[FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145]
build op model failed, result = 500002[FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145]
二、软件版本:
-- CANN 版本 (e.g., CANN 3.0.x,5.x.x): 7.0
--Tensorflow/Pytorch/MindSpore 版本:
--Python 版本 (e.g., Python 3.7.5):3.9
-- MindStudio版本 (e.g., MindStudio 2.0.0 (beta3)):
--操作系统版本 (e.g., Ubuntu 18.04):ubuntu 22.04
三、测试步骤:
python -m infer --modelPath="./Models/model_16_m3_0.8888.pth" --streaming=False --inputPath="./dataset/fight/fi001.mp4" --outputPath="./outputVideo.mp4" --sequenceLength=16 --skip=2 --showInfo=True
使用以上命令推理
当前conv3d没有支持,如有需要,可以联系您的PAE/FAE寻求支持。或者尝试将该算子输入类型转为FLOAT16看看可不可以。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论