DMNet icon indicating copy to clipboard operation
DMNet copied to clipboard

VisDrones object detection dataset how to generate density map and next step crop ?

Open zxq309 opened this issue 3 years ago • 6 comments

VisDrone Crowd Counting dataset Ground Truth is in xml format, do you means to convert it to mat format and then send it to MCNN network to generate density map? how to generate density map for VisDrones object detection dataset, its Ground Truth is different,please help me,thanks.

zxq309 avatar Jul 06 '21 14:07 zxq309

VisDrone Crowd Counting dataset Ground Truth is in xml format, do you means to convert it to mat format and then send it to MCNN network to generate density map? how to generate density map for VisDrones object detection dataset, its Ground Truth is different,please help me,thanks.

Hi Zhang,

We only use 2018 DET dataset. You need to 1. extract center of all objects and then 2. run a Gaussian kernel on your map to get result.

Actually, what you asked have been provided. Check function gaussian_filter_density in https://github.com/Cli98/DMNet/blob/master/image%20cropping/Generate_density_map_official.py. Run this file to get density map.

Cheers,

Cli98 avatar Aug 06 '21 14:08 Cli98

VisDrone Crowd Counting dataset Ground Truth is in xml format, do you means to convert it to mat format and then send it to MCNN network to generate density map? how to generate density map for VisDrones object detection dataset, its Ground Truth is different,please help me,thanks.

Hi Zhang,

We only use 2018 DET dataset. You need to 1. extract center of all objects and then 2. run a Gaussian kernel on your map to get result.

Actually, what you asked have been provided. Check function gaussian_filter_density in https://github.com/Cli98/DMNet/blob/master/image%20cropping/Generate_density_map_official.py. Run this file to get density map.

Cheers,

Thanks for your reply! I run "Generate_density_map_official.py" and "density_slide_window_official.py" successfully on your answers. However, I have another question when I run "fusion_detection_result_official.py" 微信截图_20210908211555 can you help me?

zxq309 avatar Sep 08 '21 13:09 zxq309

VisDrone Crowd Counting dataset Ground Truth is in xml format, do you means to convert it to mat format and then send it to MCNN network to generate density map? how to generate density map for VisDrones object detection dataset, its Ground Truth is different,please help me,thanks.

Hi Zhang, We only use 2018 DET dataset. You need to 1. extract center of all objects and then 2. run a Gaussian kernel on your map to get result. Actually, what you asked have been provided. Check function gaussian_filter_density in https://github.com/Cli98/DMNet/blob/master/image%20cropping/Generate_density_map_official.py. Run this file to get density map. Cheers,

Thanks for your reply! I run "Generate_density_map_official.py" and "density_slide_window_official.py" successfully on your answers. However, I have another question when I run "fusion_detection_result_official.py" 微信截图_20210908211555 can you help me?

Apologize for late reply. The result are not in expected coco format. It will help if you post format for your generated coco file. Let me know if this helps u.

Cli98 avatar Nov 05 '21 05:11 Cli98

@XiangqingZhang 你好,请问你在融合检测(fusion_detection_result_official.py)前,使用faster-rcnn分别对原图像和裁剪后的小图片进行检测时,config文件是如何配置的呢?看作者这里只提供了预训练参数,并没有提供对应于预训练参数的config文件。

wyl-19980129 avatar Dec 27 '21 12:12 wyl-19980129

@XiangqingZhang 你好,请问你在融合检测(fusion_detection_result_official.py)前,使用faster-rcnn分别对原图像和裁剪后的小图片进行检测时,config文件是如何配置的呢?看作者这里只提供了预训练参数,并没有提供对应于预训练参数的config文件。

直接使用mmdet中的config文件即可。

Mik030 avatar Apr 15 '22 02:04 Mik030

@XiangqingZhang 你好,请问你在融合检测(fusion_detection_result_official.py)前,使用faster-rcnn分别对原图像和裁剪后的小图片进行检测时,config文件是如何配置的呢?看作者这里只提供了预训练参数,并没有提供对应于预训练参数的config文件。

直接使用mmdet中的config文件即可。

Mik030说的是对的,直接使用mmdetection V2.0的配置文件就行

Cli98 avatar Jul 01 '22 14:07 Cli98

Closed as no activity by far. Feel free to re-open for any further questions.

Cli98 avatar May 02 '23 16:05 Cli98