leon 1 月之前
父节点
当前提交
3fae9a59ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/infer/trt/depth/depth.cu

+ 1 - 1
src/infer/trt/depth/depth.cu

@@ -151,7 +151,7 @@ Result DepthModelImpl::forward(const tensor::Image &image, void *stream)
                                     depth_map_buffer_.gpu_bytes(), cudaMemcpyDeviceToHost, stream_));
     checkRuntime(cudaStreamSynchronize(stream_));
     cv::Mat depth_mat(image.height, image.width, CV_32FC1, depth_map_buffer_.cpu());
-    return depth_mat;
+    return depth_mat.clone();
 }