List of commits:
Subject Hash Author Date (UTC)
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
evaluation_shb_CompactCNNV7i_t1 28cf202a306b775967c6e466120b019ae1eb6a4d Thai Thien 2020-08-23 07:49:51
evaluation shb 44f3dfdc9e3ad2787cc5286a64f1b28363796b19 Thai Thien 2020-08-23 07:32:50
performance_shb_CompactCNNV7i_t1 2698927959f377bb8308e54aebf029d8a18abf39 Thai Thien 2020-08-14 16:47:58
t7 test size 1 again 06fd0b91bf3c4c7d7713972f91c75ad33e0f25e7 Thai Thien 2020-08-14 16:38:33
t6 pin mem c573feae8f739502b53497c3482dae7a5c55aff7 Thai Thien 2020-08-14 16:35:19
testsize 20 77b4d29cbc8305943c2ec025d60b3937e1686d33 Thai Thien 2020-08-14 16:31:53
t4 increase core 80bcac87ccb6b10ce6e438fcce2f52e52fe1600a Thai Thien 2020-08-14 16:30:02
t3 eb03a48f24f38a078e8a77ba7a25fc647ecb642d Thai Thien 2020-08-14 16:27:21
eval and no grad c6d1e1fdeb6c7ebcc5318139ef22abb53b14e34e Thai Thien 2020-08-14 16:25:11
add .eval 39eb204dad16326327bca58f30c53097166a26b4 Thai Thien 2020-08-14 16:22:20
performance_shb_BigTail13i_t1 d2722882bde6cb81dfd4d2b00731a7f5caab4355 Thai Thien 2020-08-14 16:15:48
Commit 245396d814f5d83dff1fd1ecc9fcd403be1805cb - fix file, mae, mse
Author: Thai Thien
Author date (UTC): 2020-08-23 08:52
Committer name: Thai Thien
Committer date (UTC): 2020-08-23 08:52
Parent(s): caeb9f9608e91cf6a1323d9ae9f4fb215c4dd6ea
Signer:
Signing key:
Signing status: N
Tree: 0c7105eb93934fc2e3185965192815e9e96d4f0d
File Lines added Lines deleted
debug/evaluate_shb.py 15 2
File debug/evaluate_shb.py changed (mode: 100644) (index 5a731e0..3539281)
... ... from data_util import ShanghaiTechDataPath
27 27 import argparse import argparse
28 28 import cv2 import cv2
29 29 import numpy as np import numpy as np
30 import math
30 31 from data_flow import get_train_val_list, get_dataloader, create_training_image_list from data_flow import get_train_val_list, get_dataloader, create_training_image_list
31 32 """ """
32 33 This file evaluation on SHB and get information on evaluation process This file evaluation on SHB and get information on evaluation process
 
... ... def visualize_evaluation_shanghaitech_keepfull(model, args):
56 57 debug=True) debug=True)
57 58
58 59 log_f = open(args.meta_data, "w") log_f = open(args.meta_data, "w")
60 mae_s = 0
61 mse_s = 0
62 n = 0
59 63 with torch.no_grad(): with torch.no_grad():
60 64 for item in test_loader: for item in test_loader:
61 65 img, gt_density, debug_info = item img, gt_density, debug_info = item
 
... ... def visualize_evaluation_shanghaitech_keepfull(model, args):
75 79 print("shape compare " + str(predicted_density_map.shape) + " " + str(predicted_density_map_enlarge.shape)) print("shape compare " + str(predicted_density_map.shape) + " " + str(predicted_density_map_enlarge.shape))
76 80 density_map_count = gt_density.detach().sum() density_map_count = gt_density.detach().sum()
77 81 pred_count = pred.detach().cpu().sum() pred_count = pred.detach().cpu().sum()
78 log_str = str(file_name) + " " + str(density_map_count.item()) + " " + str(gt_count.item()) + str(pred_count.item())
82 density_map_count_num = density_map_count.item()
83 gt_count_num = gt_count.item()
84 pred_count_num = pred_count.item()
85 error = abs(pred_count_num-gt_count_num)
86 mae_s += error
87 mse_s += error*error
88 log_str = str(file_name_only) + " " + str(density_map_count_num) + " " + str(gt_count.item()) + str(pred_count.item())
79 89 print(log_str) print(log_str)
80 90 log_f.write(log_str+"\n") log_f.write(log_str+"\n")
81 91 log_f.close() log_f.close()
82
92 mae = mae_s / n
93 mse = math.sqrt(mse_s / n)
94 print("mae ", mae)
95 print("mse", mse)
83 96
84 97
85 98 if __name__ == "__main__": if __name__ == "__main__":
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