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 run create_gt_test_set_shtech.m in matlab/octave #2

Open
haiyang-traceto opened this issue May 27, 2019 · 2 comments
Open

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

haiyang-traceto opened this issue May 27, 2019 · 2 comments

Comments

@haiyang-traceto
Copy link

No description provided.

@haiyang-traceto
Copy link
Author

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

@sohaiblaraba
Copy link

sohaiblaraba commented Jun 7, 2019

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

  • change the names of the folders part_A and part_B to part_A_final and part_B_final respectively.
  • change the name of the folder ground-truth to ground_truth
  • and, if you are using Octave (I don't know about Matlab), run pkg load image before runing the code (to import necessary lib).

(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

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

2 participants