List of commits:
Subject Hash Author Date (UTC)
refactor and test ShanghaiTech datapath 9542ebc00f257edc38690180b7a4353794be4019 Thai Thien 2020-02-01 03:53:49
fix the unzip flow b53c5989935335377eb6a88c942713d3eccc5df7 Thai Thien 2020-02-01 03:53:13
data_script run seem ok 67420c08fc1c10a66404d3698994865726a106cd Thai Thien 2020-02-01 03:33:18
add perspective 642d6fff8c9f31e510fda85a7fb631fb855d8a6d Thai Thien 2019-10-06 16:54:44
fix padding with p 86c2fa07822d956a34b3b37e14da485a4249f01b Thai Thien 2019-10-06 02:52:58
pacnn perspective loss fb673e38a5f24ae9004fe2b7b93c88991e0c2304 Thai Thien 2019-10-06 01:38:28
data_flow shanghaitech_pacnn_with_perspective seem working 91d350a06f358e03223966297d124daee94123d0 Thai Thien 2019-10-06 01:31:11
multiscale loss and final loss only mode c65dd0e74ad28503821e5c8651a3b47b4a0c7c64 Thai Thien 2019-10-05 15:58:19
wip : perspective map eac63f2671dc5b064753acc4f40bf0f9f216ad2a Thai Thien 2019-10-04 16:26:56
shell script f2106e700b6f6174d4dd276f25ec6f3d9ff239bb thient 2019-10-04 07:42:51
WIP 42c7c8e1d772fbbda61a4bdf9e329f74e1efb600 tthien 2019-10-03 17:52:47
add readme 580cf43d1edddd67b1f6a2c57fdd5cee3dba925c Thai Thien 2019-10-02 17:44:49
update script, debug ddb68b95389be1c1d398118677dd227a8bb2b70b Thai Thien 2019-10-02 15:52:31
add d (output density map) to loss function) a0c71bf4bf2ab7393d60b06a84db8dfbbfb1a6c2 tthien 2019-09-30 16:32:39
fix the args, add save interval for model, so we don't save them all 9fdf9daa2ac4bd12b7b62521d81e520db0debd01 tthien 2019-09-30 16:30:00
meow 1ad19a22a310992e27a26471feeb37375124d075 tthien 2019-09-29 18:25:43
fix pacnn perspective map 453ece3ccb818889ba895bfc4285f7905d33cba5 Thai Thien 2019-09-25 17:20:33
apex not work so well da8c0dd57297f972201f31d57e66897177922f48 Thai Thien 2019-09-24 17:25:59
fix data loader pacnn so it will scale up with correct number of people 11d55b50d764511f2491291f0208fee0905dec49 Thai Thien 2019-09-24 15:40:56
add comet ml a9d4b89ce594f5e241168ccafdcdf0f150ea0ebb Thai Thien 2019-09-23 17:07:58
Commit 9542ebc00f257edc38690180b7a4353794be4019 - refactor and test ShanghaiTech datapath
Author: Thai Thien
Author date (UTC): 2020-02-01 03:53
Committer name: Thai Thien
Committer date (UTC): 2020-02-01 03:53
Parent(s): b53c5989935335377eb6a88c942713d3eccc5df7
Signing key:
Tree: 5dcc9eac13c3b41be3895f4dc4f189d9ea07a1a1
File Lines added Lines deleted
hard_code_variable.py 40 1
visualize_data_loader.py 1 1
File hard_code_variable.py changed (mode: 100644) (index b844ba1..b212186)
1 import os
2 import glob
3
4
1 5 class HardCodeVariable(): class HardCodeVariable():
2 6 """ """
3 7 Where did you put your data ? Where did you put your data ?
 
... ... class HardCodeVariable():
5 9 """ """
6 10 def __init__(self): def __init__(self):
7 11 self.UCF_CC_50_PATH = "/data/cv_data/UCFCrowdCountingDataset_CVPR13_with_people_density_map/UCF_CC_50" self.UCF_CC_50_PATH = "/data/cv_data/UCFCrowdCountingDataset_CVPR13_with_people_density_map/UCF_CC_50"
8 self.SHANGHAITECH_PATH = "/data/ShanghaiTech/part_A/train_data"
12 self.SHANGHAITECH_PATH = "/data/ShanghaiTech"
13 self.SHANGHAITECH_PATH_PART_A = "/data/ShanghaiTech/part_A/"
14 self.SHANGHAITECH_PATH_PART_B = "/data/ShanghaiTech/part_B/"
15 self.SHANGHAITECH_PATH_TRAIN_POSTFIX = "train_data"
16 self.SHANGHAITECH_PATH_TEST_POSTFIX = "test_data"
17
18
19 if __name__ == "__main__":
20 """
21 Test if path is working
22 """
23 hard_code =HardCodeVariable()
24 if os.path.exists(hard_code.SHANGHAITECH_PATH):
25 print("exist " + hard_code.SHANGHAITECH_PATH)
26 print("let see if we have train, test folder")
27 train_path_a = os.path.join(hard_code.SHANGHAITECH_PATH_PART_A, hard_code.SHANGHAITECH_PATH_TRAIN_POSTFIX)
28 train_path_b = os.path.join(hard_code.SHANGHAITECH_PATH_PART_B, hard_code.SHANGHAITECH_PATH_TRAIN_POSTFIX)
29 test_path_a = os.path.join(hard_code.SHANGHAITECH_PATH_PART_A, hard_code.SHANGHAITECH_PATH_TEST_POSTFIX)
30 test_path_b = os.path.join(hard_code.SHANGHAITECH_PATH_PART_B, hard_code.SHANGHAITECH_PATH_TEST_POSTFIX)
31 if os.path.exists(train_path_a):
32 print("exist " + train_path_a)
33 if os.path.exists(train_path_b):
34 print("exist " + train_path_b)
35 if os.path.exists(test_path_a):
36 print("exist " + test_path_a)
37 if os.path.exists(test_path_b):
38 print("exist " + test_path_b)
39 print("count number of image")
40 image_folder_list = [train_path_a, train_path_b, test_path_a, test_path_b]
41 for image_root_path in image_folder_list:
42 image_path_list = glob.glob(os.path.join(image_root_path, "images", "*.jpg"))
43 count_img = len(image_path_list)
44 first_img = image_path_list[0]
45 print("in folder " + image_root_path)
46 print("--- there are total " + str(count_img))
47 print('--- first img ' + first_img)
File visualize_data_loader.py changed (mode: 100644) (index b6d376e..90d8de0)
... ... def visualize_shanghaitech_pacnn_with_perspective():
53 53 HARD_CODE = HardCodeVariable() HARD_CODE = HardCodeVariable()
54 54 saved_folder = "visualize/test_dataloader" saved_folder = "visualize/test_dataloader"
55 55 os.makedirs(saved_folder, exist_ok=True) os.makedirs(saved_folder, exist_ok=True)
56 DATA_PATH = HARD_CODE.SHANGHAITECH_PATH
56 DATA_PATH = HARD_CODE.SHANGHAITECH_PATH_PART_A
57 57 train_list, val_list = get_train_val_list(DATA_PATH, test_size=0.2) train_list, val_list = get_train_val_list(DATA_PATH, test_size=0.2)
58 58 test_list = None test_list = None
59 59
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