rongliangzi / dense-scale-network-for-crowd-counting Goto Github PK
View Code? Open in Web Editor NEWAn unofficial implement of paper "Dense Scale Network for Crowd Counting", link: https://arxiv.org/abs/1906.09707
An unofficial implement of paper "Dense Scale Network for Crowd Counting", link: https://arxiv.org/abs/1906.09707
It would be more accurate to use the INTER_AREA interpolation than the INTER_CUBIC one for the resize of the target.
Indeed, this downsampling is more natural here because it computes the weighted average of pixels.
Moreover, the rescale should be normalized with int(target.shape[0]) * int(target.shape[1])/ (int(target.shape[1]/ratio) * int(target.shape[0]/ratio))
rather than ratio**2
.
It is not that minor, the current resize produces 1% of error.
I will make a PR for that!
Thanks
Many thanks for your great work to attempt to reproduce the DSNet paper!
After reading your code, in particular the dsnet.py
file, I notice 4 potential issues :
x3 = torch.cat([x, x1_raw, x2_raw, x3_raw], 1)
I am training a network with these changes on ShangaiTech B dataset, let see if I retrieve paper results....
Thanks again for your work!
Regarding the Multi-scale density level consistency loss, I think the L1 loss has to be reduced by sum instead of mean (default pytorch paramater).
Indeed, even if it it not specified clearly in the paper, as the norm is divided by the square of the average pooling output size, it is more logical to sum every component of the average pooling operation than average them.
What do you think?
网络输出一张热力图,最后是dmp.sum()得到一个count,但是这个count是一个小数,怎么获得这张热力图的实际人数呢?
您好,对于您的程序有几个问题:
1、程序中使用的是python2 还是python3?
2、Shanghaitech的数据集中groundtruth为.mat格式,程序中使用h5py读取,这样读出来之后为什么为空呢?
3、读取groundtruth之后,索引['density']键时,会提示该键不存在,可能是什么原因呢?
Hi,
I am a newbie who is studying crowd counting.
According to the survey paper, your work performs excellent.
I have traced your code and trained the model, it seems need a h5 to test your model? How can I use a photo from the internet to test your model? And how can I create a h5 file of it?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.