List of commits:
Subject Hash Author Date (UTC)
seem working c44af597b7adf98ecaf3a71e565de8688f7ff6ba Thai Thien 2020-09-06 15:55:28
done single sample cee46d309e9bb91ac4185b0e1b74deddefbc8553 Thai Thien 2020-09-06 15:24:39
a ec2103c6617ad84375e5a7a0f3cde3b32ab012a0 Thai Thien 2020-08-23 15:39:51
pred_count d9168903486d7a88c0763a8e93b18d1ed89d2d40 Thai Thien 2020-08-23 15:37:02
density_map_count = gt_density.detach().sum() 015c7ab3a1734c6002065f775f90870b6c5bdbd5 Thai Thien 2020-08-23 15:35:31
no more eval, only one in function 316b330c481224bb4264ddebb3dda2e317c32ac1 Thai Thien 2020-08-23 15:34:21
None type eval 15a12c6dd1a6f828f5e852faecaf2a812dfddce8 Thai Thien 2020-08-23 15:30:17
run experiment on shb truncate 4 3faae2b49ed074fdb96fc20e916fee9eeac4f92f Thai Thien 2020-08-23 15:20:23
evaluatuion shb b80eac051649c36ea1631cc4701e6d1d587d7887 Thai Thien 2020-08-23 09:26:45
fix evaluation shb 51cbe92724973f64cb046f7f49fb1976400827e4 Thai Thien 2020-08-23 09:18:35
typo 1cba17e02cc79ee73c4ad5c9f1faab4913f92b01 Thai Thien 2020-08-23 08:53:21
fix file, mae, mse 245396d814f5d83dff1fd1ecc9fcd403be1805cb Thai Thien 2020-08-23 08:52:16
file name strage stuff caeb9f9608e91cf6a1323d9ae9f4fb215c4dd6ea Thai Thien 2020-08-23 08:44:54
TypeError: can only concatenate str (not "list") to str e8aebcfb782966c11c3ca116b5a9cc254021a73d Thai Thien 2020-08-23 08:41:02
key error 5732100d6aca8e3fea6a4d25270edefbc8148a2a Thai Thien 2020-08-23 08:39:09
fix target fdbda2c6923dd164560448a445cd64ff413fc804 Thai Thien 2020-08-23 08:37:48
test path 06d268f873e6ceea93a8e8741d819a03b324cedb Thai Thien 2020-08-23 08:27:38
a 1d73d926894edbc600db678316b9b24a583c4cb8 Thai Thien 2020-08-23 08:25:58
test set bb1e40fc7806c8bef5e94fbaa54ac9af3b599041 Thai Thien 2020-08-23 08:23:30
remove epoch stuff 2cc6434aa298b6da90b4577ce529f971119b86c7 Thai Thien 2020-08-23 07:53:36
Commit c44af597b7adf98ecaf3a71e565de8688f7ff6ba - seem working
Author: Thai Thien
Author date (UTC): 2020-09-06 15:55
Committer name: Thai Thien
Committer date (UTC): 2020-09-06 15:55
Parent(s): cee46d309e9bb91ac4185b0e1b74deddefbc8553
Signer:
Signing key:
Signing status: N
Tree: 74d60b58128228348a12c348e62514afe3d6745c
File Lines added Lines deleted
dataset_script/jhucrowd_density_map.py 38 2
File dataset_script/jhucrowd_density_map.py changed (mode: 100644) (index 1f75743..a6b63ef)
... ... def t_single_density_map():
84 84 print(out) print(out)
85 85
86 86
87 def print_density_map(density_path, density_img_out):
87 def t_count(density_path, label_path):
88 gt_file = h5py.File(density_path, 'r')
89 target = np.asarray(gt_file['density'])
90 density_count = target.sum()
91 label_count = len(load_density_label(label_path))
92 print("density count ", density_count)
93 print("label count ", label_count)
94 print("diff ", density_count - label_count)
95 print("diff percentage ", (density_count - label_count)/ label_count * 100)
96
97
98 def t_print_density_map(density_path, density_img_out):
88 99 gt_file = h5py.File(density_path, 'r') gt_file = h5py.File(density_path, 'r')
89 100 target = np.asarray(gt_file['density']) target = np.asarray(gt_file['density'])
90 101 save_density_map(target, density_img_out) save_density_map(target, density_img_out)
91 102 print("done print ", density_img_out) print("done print ", density_img_out)
92 103
104
105 def full_flow_jhucrowd(root_path):
106 ROOT = root_path
107 images_folder = os.path.join(ROOT, "images")
108 gt_path_folder = os.path.join(ROOT, "gt")
109 density_path_folder = os.path.join(ROOT, "ground-truth-h5")
110 img_list = os.listdir(path=images_folder)
111 os.makedirs(density_path_folder, exist_ok=True)
112 for img_name in img_list[:3]:
113 name = img_name.split(".")[0]
114 density_name = name + ".h5"
115 gt_name = name + ".txt"
116 img_path = os.path.join(images_folder, img_name)
117 gt_path = os.path.join(gt_path_folder, gt_name)
118 density_path = os.path.join(density_path_folder, density_name)
119 out = generate_density_map(img_path, gt_path, density_path)
120 print(out)
121 print("done")
122
123
93 124 if __name__ == "__main__": if __name__ == "__main__":
125 # full_flow_jhucrowd("/data/jhu_crowd_v2.0/val")
126 # t_count("/data/jhu_crowd_v2.0/val/unittest/0003.h5", "/data/jhu_crowd_v2.0/val/gt/0003.txt")
94 127 # t_single_density_map() # t_single_density_map()
95 print_density_map("/data/jhu_crowd_v2.0/val/unittest/0003.h5", "/data/jhu_crowd_v2.0/val/unittest/0003.png")
128
129 t_print_density_map("/data/jhu_crowd_v2.0/val/ground-truth-h5/3556.h5", "/data/jhu_crowd_v2.0/val/ground-truth-h5/3556.png")
130 t_print_density_map("/data/jhu_crowd_v2.0/val/ground-truth-h5/1632.h5",
131 "/data/jhu_crowd_v2.0/val/ground-truth-h5/1632.png")
96 132
97 133 # ROOT = "/data/jhu_crowd_v2.0/val" # ROOT = "/data/jhu_crowd_v2.0/val"
98 134 # images_folder = os.path.join(ROOT, "images") # images_folder = os.path.join(ROOT, "images")
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/hahattpro/crowd_counting_framework

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/hahattpro/crowd_counting_framework

Clone this repository using git:
git clone git://git.rocketgit.com/user/hahattpro/crowd_counting_framework

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main