Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to generate the density map? #9

Open
NextGuido opened this issue Sep 26, 2018 · 8 comments
Open

how to generate the density map? #9

NextGuido opened this issue Sep 26, 2018 · 8 comments

Comments

@NextGuido
Copy link

@Ling-Bao
hi! I'm trying to use your code with my own dataset, but I don't know how to generate the density map as you gave. So can you tell me how to do that? thx

@Ling-Bao
Copy link
Owner

You can find method of density map generation in this site:https://github.com/Ling-Bao/ACSCP_cGAN#addtional

@Ling-Bao
Copy link
Owner

可以对密度生成制作的matlab代码进行参数修改以满足你的要求,https://github.com/Ling-Bao/ACSCP_cGAN/blob/master/data_maker/step3/map_mcnn.m

line 40  ip.addParameter('type', 'MCNN'); 
修改为:
ip.addParameter('type', ''); 

@sratandeep16
Copy link

Hi,

I'm getting this error while trying to generate density map using your file. Please help me solve it.

Undefined function or variable 'searchhead'.

Error in map_mcnn (line 144)
SearchHeads = searchhead(D, p, q, radius); % 搜索半径递增

@Ling-Bao
Copy link
Owner

Ling-Bao commented Feb 18, 2019

You can find searchhead(A , i0, j0, radius) from searchhead.m。project is from data_maker

@Ling-Bao
Copy link
Owner

Ling-Bao commented Feb 18, 2019

@NextGuido 项目ACSCP_cGAN可以实现输出的密度估计图和原图大小相同。线上使用的生成器模型我单独分开了,你可以参考generator_large(self, image, batch_size=1, use_dropout=True, reuse=False)的网络结构。通过使用上采样或是反卷积都可以实现输入和输出图像大小相同,但需要注意输入图像的尺寸大小,如果下采样为奇数*奇数的feature map,然后还要继续下采样就不太好恢复为原始大小了。

@sratandeep16
Copy link

Hi,
After using searchhead.m, I am getting this error
" Undefined function or variable 'distance'. "

@shriramhr
Copy link

Hi, The map_mcnn.m given has a few errors and missing code as per the latest matlab. I've fixed it and can confirm that they work because this model trains on my custom dataset. Link is given below.
MCNN_Density_Matlab.zip

@sratandeep16
Copy link

Thanx @shriramhr . You have acted as a true friend of mine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants