zhengpeng7 / sanet-keras Goto Github PK
View Code? Open in Web Editor NEWImplement SANet for crowd counting in Keras.
License: MIT License
Implement SANet for crowd counting in Keras.
License: MIT License
HELLO, thanks for your open-source.
How about your recurrent performance?
Is this close to the result that paper mentioned?
i try to run generate_datasets, but it came out 'operands could not be broadcast together with shapes (91,811) (91,0) (91,811) '
here is the result
ValueError Traceback (most recent call last)
in
26 k[int(gt[i][1]), int(gt[i][0])] = 1
27
---> 28 k = get_density_map_gaussian( k, gt, adaptive_mode=is_adaptive )
29
30 file_path = img_path.replace('.jpg', '.h5').replace('images', 'ground')
~\SANet\utils.py in get_density_map_gaussian(im, points, adaptive_mode, fixed_value, fixed_values)
65 max(0, p[0]-gaussian_radius):min(density_map.shape[0], p[0]+gaussian_radius+1),
66 max(0, p[1]-gaussian_radius):min(density_map.shape[1], p[1]+gaussian_radius+1)
---> 67 ] += gaussian_map[y_up:y_down, x_left:x_right]
68 # density_map[density_map < 0.0003] = 0
69 density_map = density_map // (np.sum(density_map // num_gt))
ValueError: operands could not be broadcast together with shapes (91,811) (91,0) (91,811)
ValueError: operands could not be broadcast together with shapes (91,811) (91,0) (91,811)
Hi!
First of all, thank you very much for sharing your code! It's a great work.
My question is if the network could be use with binary images as input.
Thanks a lot!
Best regards.
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.