Hi,
I have exactly the same error as the following post:
The error occurs when there is no object detected in a frame.
The error is mentioned here too:
- Error Code 1: Myelin (Division by 0 detected in the shape graph. Tensor (Divisor) "sp__mye3" is equal to 0.; )
- Error Code 1: Myelin (Division by 0 detected in the shape graph. Tensor (Divisor) "sp__mye3" is equal to 0.; )
- Yolov8seg giving divide by 0 errors if no detection in frame
- DS6.4 got an Division by 0 detected in the shape graph error
In my case I’m testing it in a x86 PC with nvcr.io/nvidia/deepstream:7.0-triton-multiarch
docker image that includes TensorRT 8.6.1.6.
Downgrading to a previous version of DeepStream is not an option for me.
Is there any workaround I can apply until you fix it and I can use the yolov8 segmentation model with DeepStream 7 (and TensorRT 8.6)?
- Creating a custom TensorRT layer? (I don’t know if it’s possible to override an existing one)
- Modifying the ONNX?
- Building nvinfer with try/catch? (as it seems to occur when enqueuing the buffer, but maybe tensorrt context doesn’t recover after this)
ERROR: [TRT]: 1: [runner.cpp::shapeChangeHelper::621] Error Code 1: Myelin (Division by 0 detected in the shape
graph. Tensor (Divisor) "sp__mye3" is equal to 0.; )
ERROR: nvdsinfer_backend.cpp:507 Failed to enqueue trt inference batch
ERROR: nvdsinfer_context_impl.cpp:1824 Infer context enqueue buffer failed, nvinfer error:NVDSINFER_TENSORRT_ERROR
Any clue, any advice, or should I look for another segmentation model?
Thanks