Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
GPU
• DeepStream Version
6.1.1
• JetPack Version (valid for Jetson only)
• TensorRT Version
TrT 8
• NVIDIA GPU Driver Version (valid for GPU only)
11.7
• Issue Type( questions, new requirements, bugs)
questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
use the smilar codes
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
I want to dump images in deepstream, before dps 6.1.1, It worked very well with the following code, but now in dps 6.1.1, this program throws no error and create no boxes in yolov5. if I comment the last line, the boxes were created correctly.
NvBufSurface *dst_surface = NULL;
NvBufSurface surface_idx;
surface_idx = *surface;
surface_idx.surfaceList = &(surface->surfaceList[batch_id]);
surface_idx.numFilled = surface_idx.batchSize = 1;
int batch_size = surface_idx.batchSize;
cudaStream_t cuda_stream;
cudaError_t cuda_err=cudaStreamCreate (&cuda_stream);
//resize to origin dimension, need to recalculate the bbox later
NvBufSurfTransformRect src_rect, dst_rect;
src_rect.top = 0;
src_rect.left = 0;
dst_rect.top = 0;
dst_rect.left = 0;
src_rect.width = (guint) surface->surfaceList[batch_id].width;
src_rect.height= (guint) surface->surfaceList[batch_id].height;
dst_rect.width = frame_width;
dst_rect.height= frame_height;
NvBufSurfTransformParams nvbufsurface_params;
nvbufsurface_params.src_rect = &src_rect;
nvbufsurface_params.dst_rect = &dst_rect;
nvbufsurface_params.transform_flag = NVBUFSURF_TRANSFORM_CROP_SRC | NVBUFSURF_TRANSFORM_CROP_DST;
nvbufsurface_params.transform_filter = NvBufSurfTransformInter_Default;
NvBufSurfaceCreateParams nvbufsurface_create_params;
nvbufsurface_create_params.gpuId = surface->gpuId;
nvbufsurface_create_params.width = frame_width;
nvbufsurface_create_params.height = frame_height;
nvbufsurface_create_params.size = 0;
nvbufsurface_create_params.colorFormat = NVBUF_COLOR_FORMAT_RGBA;
nvbufsurface_create_params.layout = NVBUF_LAYOUT_PITCH;
#ifdef aarch64
nvbufsurface_create_params.memType = NVBUF_MEM_DEFAULT;
#else
nvbufsurface_create_params.memType = NVBUF_MEM_CUDA_UNIFIED;
#endif
cuda_err = cudaSetDevice (surface->gpuId);
int create_result = NvBufSurfaceCreate(&dst_surface,batch_size,&nvbufsurface_create_params);
NvBufSurfTransformConfigParams transform_config_params;
NvBufSurfTransform_Error err;
transform_config_params.compute_mode = NvBufSurfTransformCompute_Default;
transform_config_params.gpu_id = surface->gpuId;
transform_config_params.cuda_stream = cuda_stream;
err = NvBufSurfTransformSetSessionParams (&transform_config_params);