priyanka-kasture / Crowd-Counting-with-MCNNs

Crowd counting on the ShanghaiTech dataset, using multi-column convolutional neural networks.
MIT License
24 stars 10 forks source link

how to run create_gt_test_set_shtech.m in matlab/octave #2

Open haiyang-traceto opened 5 years ago

haiyang-traceto commented 5 years ago

I had checked the readme file, but have no idea about how to run the create_gt_test_set_shtech.m file.

sohaiblaraba commented 5 years ago

I think it's the same as the folder available in many gits. Like this one: https://github.com/svishwa/crowdcount-cascaded-mtl/tree/master/data_preparation I have tested it and it works. You just need to

(again, if you are using Octave, there's a missing function called rng in create_training_set_shtech.m, you can add these lines (creating the function) at the beginning:

function rng(x) 
  randn("seed",x) 
  rand("seed",x) 
end