Skip to content

Instantly share code, notes, and snippets.

@amiltonwong
Created June 30, 2021 21:22
Show Gist options
  • Save amiltonwong/ba26d30ec808d6099d39a0a240ef5bbd to your computer and use it in GitHub Desktop.
Save amiltonwong/ba26d30ec808d6099d39a0a240ef5bbd to your computer and use it in GitHub Desktop.
(pytorch1.5_4d_pls) root@milton-ThinkCentre-M93p:/data/code13/4D-PLS# python test_models.py
Data Preparation
****************
Preparing seq 08 class frames. (Long but one time only)
Starting Calibration (use verbose=True for more details)
Previous calibration found:
Check batch limit dictionary
"random_51.000_0.061_1_83629": ?
Check neighbors limit dictionary
"random_83629_0.061_0.152": ?
"random_83629_0.122_0.305": ?
"random_83629_0.244_0.610": ?
"random_83629_0.488_1.220": ?
"random_83629_0.976_2.440": ?
"random_83629_1.952_4.880": ?
Step 1 estim_b = 0.10 batch_limit = 1
Step 2 estim_b = 0.11 batch_limit = 1
Step 3 estim_b = 0.12 batch_limit = 1
Step 4 estim_b = 0.13 batch_limit = 1
Step 5 estim_b = 0.14 batch_limit = 1
Step 6 estim_b = 0.14 batch_limit = 1
Step 7 estim_b = 0.15 batch_limit = 1
Step 8 estim_b = 0.16 batch_limit = 1
Step 9 estim_b = 0.17 batch_limit = 1
Step 10 estim_b = 0.18 batch_limit = 1
Step 11 estim_b = 0.19 batch_limit = 1
Step 12 estim_b = 0.19 batch_limit = 1
Step 13 estim_b = 0.20 batch_limit = 1
Step 14 estim_b = 0.21 batch_limit = 1
Step 15 estim_b = 0.22 batch_limit = 1
Step 16 estim_b = 0.23 batch_limit = 1
Step 17 estim_b = 0.23 batch_limit = 1
Step 18 estim_b = 0.24 batch_limit = 1
Step 19 estim_b = 0.25 batch_limit = 1
Step 20 estim_b = 0.26 batch_limit = 1
Step 21 estim_b = 0.26 batch_limit = 1
Step 22 estim_b = 0.27 batch_limit = 1
Step 23 estim_b = 0.28 batch_limit = 1
Step 24 estim_b = 0.29 batch_limit = 1
Step 25 estim_b = 0.29 batch_limit = 1
Step 26 estim_b = 0.30 batch_limit = 1
Step 27 estim_b = 0.31 batch_limit = 1
Step 28 estim_b = 0.31 batch_limit = 1
Step 29 estim_b = 0.32 batch_limit = 1
Step 30 estim_b = 0.33 batch_limit = 1
Step 31 estim_b = 0.33 batch_limit = 1
Step 32 estim_b = 0.34 batch_limit = 1
Step 33 estim_b = 0.35 batch_limit = 1
Step 34 estim_b = 0.35 batch_limit = 1
Step 35 estim_b = 0.36 batch_limit = 1
Step 36 estim_b = 0.37 batch_limit = 1
Step 37 estim_b = 0.37 batch_limit = 1
Step 38 estim_b = 0.38 batch_limit = 1
Step 39 estim_b = 0.39 batch_limit = 1
Step 40 estim_b = 0.39 batch_limit = 1
Step 41 estim_b = 0.40 batch_limit = 1
Step 42 estim_b = 0.40 batch_limit = 1
Step 43 estim_b = 0.41 batch_limit = 1
Step 44 estim_b = 0.42 batch_limit = 1
Step 45 estim_b = 0.42 batch_limit = 1
Step 46 estim_b = 0.43 batch_limit = 1
Step 47 estim_b = 0.43 batch_limit = 1
Step 48 estim_b = 0.44 batch_limit = 1
Step 49 estim_b = 0.44 batch_limit = 1
Step 50 estim_b = 0.45 batch_limit = 1
Step 51 estim_b = 0.46 batch_limit = 1
Step 52 estim_b = 0.46 batch_limit = 1
Step 53 estim_b = 0.47 batch_limit = 1
Step 54 estim_b = 0.47 batch_limit = 1
Step 55 estim_b = 0.48 batch_limit = 1
Step 56 estim_b = 0.48 batch_limit = 1
Step 57 estim_b = 0.49 batch_limit = 1
Step 58 estim_b = 0.49 batch_limit = 1
Step 59 estim_b = 0.50 batch_limit = 1
Step 60 estim_b = 0.50 batch_limit = 1
Step 61 estim_b = 0.51 batch_limit = 1
Step 62 estim_b = 0.51 batch_limit = 1
Step 63 estim_b = 0.52 batch_limit = 1
Step 64 estim_b = 0.52 batch_limit = 1
Step 65 estim_b = 0.53 batch_limit = 1
Step 66 estim_b = 0.53 batch_limit = 1
Step 67 estim_b = 0.54 batch_limit = 1
Step 68 estim_b = 0.54 batch_limit = 1
Step 69 estim_b = 0.55 batch_limit = 1
Step 70 estim_b = 0.55 batch_limit = 1
Step 71 estim_b = 0.55 batch_limit = 1
Step 72 estim_b = 0.56 batch_limit = 1
Step 73 estim_b = 0.56 batch_limit = 1
Step 74 estim_b = 0.57 batch_limit = 1
Step 75 estim_b = 0.57 batch_limit = 1
Step 76 estim_b = 0.58 batch_limit = 1
Step 77 estim_b = 0.58 batch_limit = 1
Step 78 estim_b = 0.58 batch_limit = 1
Step 79 estim_b = 0.59 batch_limit = 1
Step 80 estim_b = 0.59 batch_limit = 1
Step 81 estim_b = 0.60 batch_limit = 1
Step 82 estim_b = 0.60 batch_limit = 1
Step 83 estim_b = 0.61 batch_limit = 1
Step 84 estim_b = 0.61 batch_limit = 1
Step 85 estim_b = 0.61 batch_limit = 1
Step 86 estim_b = 0.62 batch_limit = 1
Step 87 estim_b = 0.62 batch_limit = 1
Step 88 estim_b = 0.62 batch_limit = 1
Step 89 estim_b = 0.63 batch_limit = 1
Step 90 estim_b = 0.63 batch_limit = 1
Step 91 estim_b = 0.64 batch_limit = 1
Step 92 estim_b = 0.64 batch_limit = 1
Step 93 estim_b = 0.64 batch_limit = 1
Step 94 estim_b = 0.65 batch_limit = 1
Step 95 estim_b = 0.65 batch_limit = 1
Step 96 estim_b = 0.65 batch_limit = 1
Step 97 estim_b = 0.66 batch_limit = 1
Step 98 estim_b = 0.66 batch_limit = 1
Step 99 estim_b = 0.66 batch_limit = 1
Step 100 estim_b = 0.67 batch_limit = 1
Step 101 estim_b = 0.67 batch_limit = 1
Step 102 estim_b = 0.67 batch_limit = 1
Step 103 estim_b = 0.68 batch_limit = 1
Step 104 estim_b = 0.68 batch_limit = 1
Step 105 estim_b = 0.68 batch_limit = 1
Step 106 estim_b = 0.69 batch_limit = 1
Step 107 estim_b = 0.69 batch_limit = 1
Step 108 estim_b = 0.69 batch_limit = 1
Step 109 estim_b = 0.70 batch_limit = 1
Step 110 estim_b = 0.70 batch_limit = 1
Step 111 estim_b = 0.70 batch_limit = 1
Step 112 estim_b = 0.71 batch_limit = 1
Step 113 estim_b = 0.71 batch_limit = 1
Step 114 estim_b = 0.71 batch_limit = 1
Step 115 estim_b = 0.71 batch_limit = 1
Step 116 estim_b = 0.72 batch_limit = 1
Step 117 estim_b = 0.72 batch_limit = 1
Step 118 estim_b = 0.72 batch_limit = 1
Step 119 estim_b = 0.73 batch_limit = 1
Step 120 estim_b = 0.73 batch_limit = 1
Step 121 estim_b = 0.73 batch_limit = 1
Step 122 estim_b = 0.73 batch_limit = 1
Step 123 estim_b = 0.74 batch_limit = 1
Step 124 estim_b = 0.74 batch_limit = 1
Step 125 estim_b = 0.74 batch_limit = 1
Step 126 estim_b = 0.74 batch_limit = 1
Step 127 estim_b = 0.75 batch_limit = 1
Step 128 estim_b = 0.75 batch_limit = 1
Step 129 estim_b = 0.75 batch_limit = 1
Step 130 estim_b = 0.75 batch_limit = 1
Step 131 estim_b = 0.76 batch_limit = 1
Step 132 estim_b = 0.76 batch_limit = 1
Step 133 estim_b = 0.76 batch_limit = 1
Step 134 estim_b = 0.76 batch_limit = 1
Step 135 estim_b = 0.77 batch_limit = 1
Step 136 estim_b = 0.77 batch_limit = 1
Step 137 estim_b = 0.77 batch_limit = 1
Step 138 estim_b = 0.77 batch_limit = 1
Step 139 estim_b = 0.78 batch_limit = 1
Step 140 estim_b = 0.78 batch_limit = 1
Step 141 estim_b = 0.78 batch_limit = 1
Step 142 estim_b = 0.78 batch_limit = 1
Step 143 estim_b = 0.78 batch_limit = 1
Step 144 estim_b = 0.79 batch_limit = 1
Step 145 estim_b = 0.79 batch_limit = 1
Step 146 estim_b = 0.79 batch_limit = 1
Step 147 estim_b = 0.79 batch_limit = 1
Step 148 estim_b = 0.79 batch_limit = 1
Step 149 estim_b = 0.80 batch_limit = 1
Step 150 estim_b = 0.80 batch_limit = 1
Step 151 estim_b = 0.80 batch_limit = 1
Step 152 estim_b = 0.80 batch_limit = 1
Step 153 estim_b = 0.80 batch_limit = 1
Step 154 estim_b = 0.81 batch_limit = 1
Step 155 estim_b = 0.81 batch_limit = 1
Step 156 estim_b = 0.81 batch_limit = 1
Step 157 estim_b = 0.81 batch_limit = 1
Step 158 estim_b = 0.81 batch_limit = 1
Step 159 estim_b = 0.82 batch_limit = 1
Step 160 estim_b = 0.82 batch_limit = 1
Step 161 estim_b = 0.82 batch_limit = 1
Step 162 estim_b = 0.82 batch_limit = 1
Step 163 estim_b = 0.82 batch_limit = 1
Step 164 estim_b = 0.83 batch_limit = 1
Step 165 estim_b = 0.83 batch_limit = 1
Step 166 estim_b = 0.83 batch_limit = 1
Step 167 estim_b = 0.83 batch_limit = 1
Step 168 estim_b = 0.83 batch_limit = 1
Step 169 estim_b = 0.83 batch_limit = 1
Step 170 estim_b = 0.84 batch_limit = 1
Step 171 estim_b = 0.84 batch_limit = 1
Step 172 estim_b = 0.84 batch_limit = 1
Step 173 estim_b = 0.84 batch_limit = 1
Step 174 estim_b = 0.84 batch_limit = 1
Step 175 estim_b = 0.84 batch_limit = 1
Step 176 estim_b = 0.84 batch_limit = 1
Step 177 estim_b = 0.85 batch_limit = 1
Step 178 estim_b = 0.85 batch_limit = 1
Step 179 estim_b = 0.85 batch_limit = 1
Step 180 estim_b = 0.85 batch_limit = 1
Step 181 estim_b = 0.85 batch_limit = 1
Step 182 estim_b = 0.85 batch_limit = 1
Step 183 estim_b = 0.86 batch_limit = 1
Step 184 estim_b = 0.86 batch_limit = 1
Step 185 estim_b = 0.86 batch_limit = 1
Step 186 estim_b = 0.86 batch_limit = 1
Step 187 estim_b = 0.86 batch_limit = 1
Step 188 estim_b = 0.86 batch_limit = 1
Step 189 estim_b = 0.86 batch_limit = 1
Step 190 estim_b = 0.87 batch_limit = 1
Step 191 estim_b = 0.87 batch_limit = 1
Step 192 estim_b = 0.87 batch_limit = 1
Step 193 estim_b = 0.87 batch_limit = 1
Step 194 estim_b = 0.87 batch_limit = 1
Step 195 estim_b = 0.87 batch_limit = 1
Step 196 estim_b = 0.87 batch_limit = 1
Step 197 estim_b = 0.87 batch_limit = 1
Step 198 estim_b = 0.88 batch_limit = 1
Step 199 estim_b = 0.88 batch_limit = 1
Step 200 estim_b = 0.88 batch_limit = 1
Step 201 estim_b = 0.88 batch_limit = 1
Step 202 estim_b = 0.88 batch_limit = 1
Step 203 estim_b = 0.88 batch_limit = 1
Step 204 estim_b = 0.88 batch_limit = 1
Step 205 estim_b = 0.88 batch_limit = 1
Step 206 estim_b = 0.89 batch_limit = 1
Step 207 estim_b = 0.89 batch_limit = 1
Step 208 estim_b = 0.89 batch_limit = 1
Step 209 estim_b = 0.89 batch_limit = 1
Step 210 estim_b = 0.89 batch_limit = 1
Step 211 estim_b = 0.89 batch_limit = 1
Step 212 estim_b = 0.89 batch_limit = 1
Step 213 estim_b = 0.89 batch_limit = 1
Step 214 estim_b = 0.89 batch_limit = 1
Step 215 estim_b = 0.90 batch_limit = 1
Step 216 estim_b = 0.90 batch_limit = 1
Step 217 estim_b = 0.90 batch_limit = 1
Step 218 estim_b = 0.90 batch_limit = 1
Step 219 estim_b = 0.90 batch_limit = 1
Step 220 estim_b = 0.90 batch_limit = 1
Step 221 estim_b = 0.90 batch_limit = 1
Step 222 estim_b = 0.90 batch_limit = 1
Step 223 estim_b = 0.90 batch_limit = 1
Step 224 estim_b = 0.90 batch_limit = 1
Step 225 estim_b = 0.91 batch_limit = 1
Step 226 estim_b = 0.91 batch_limit = 1
Step 227 estim_b = 0.91 batch_limit = 1
Step 228 estim_b = 0.91 batch_limit = 1
**************************************************
neighbors_num | layer 0 | layer 1 | layer 2 | layer 3 | layer 4 | layer 5
0 | 0 | 0 | 0 | 0 | 0 | 0
1 | 3023450 | 637666 | 114559 | 19128 | 2525 | 272
2 | 3005206 | 920995 | 195065 | 34763 | 4816 | 461
3 | 2565646 | 1004703 | 253337 | 51284 | 7658 | 650
4 | 2128838 | 996682 | 289951 | 66396 | 11080 | 908
5 | 1775157 | 970360 | 312302 | 80109 | 14676 | 1348
6 | 1468140 | 930751 | 328463 | 92793 | 18717 | 1912
7 | 1197845 | 886290 | 340238 | 101899 | 22578 | 2657
8 | 964477 | 827646 | 348455 | 111069 | 25864 | 3342
9 | 767161 | 763165 | 351041 | 118333 | 29515 | 4383
10 | 601119 | 698076 | 351390 | 123724 | 33671 | 5310
11 | 463657 | 641148 | 346624 | 126709 | 37132 | 6691
12 | 349430 | 594935 | 342121 | 129180 | 40621 | 7648
13 | 257931 | 556555 | 336323 | 130431 | 43310 | 9042
14 | 186126 | 525588 | 331204 | 131051 | 45806 | 10231
15 | 131891 | 493056 | 327453 | 132836 | 48391 | 11530
16 | 92216 | 458315 | 322062 | 134439 | 50223 | 13039
17 | 63274 | 416737 | 317291 | 136619 | 52367 | 14287
18 | 42385 | 372260 | 314579 | 138960 | 53958 | 16149
19 | 28653 | 324921 | 312775 | 144902 | 56305 | 17613
20 | 19019 | 277236 | 312490 | 154007 | 60080 | 19850
21 | 12364 | 232079 | 307148 | 169324 | 68849 | 23242
22 | 7881 | 194200 | 289132 | 161243 | 64633 | 24494
23 | 4934 | 160794 | 267043 | 163602 | 66317 | 26163
24 | 3169 | 134040 | 236271 | 160104 | 68529 | 27719
25 | 1928 | 111680 | 197198 | 146859 | 66817 | 28257
26 | 1166 | 93587 | 159382 | 125421 | 60448 | 27139
27 | 727 | 78228 | 127404 | 101832 | 52332 | 24467
28 | 439 | 65282 | 102421 | 79341 | 42165 | 21385
29 | 242 | 54653 | 84677 | 62461 | 32672 | 17651
30 | 153 | 45318 | 71085 | 50606 | 25926 | 14755
31 | 110 | 37549 | 60124 | 41787 | 21068 | 12107
32 | 66 | 31063 | 50118 | 35901 | 17343 | 9866
33 | 44 | 25941 | 42711 | 31237 | 14865 | 8124
34 | 24 | 21665 | 36303 | 26508 | 13052 | 6999
35 | 19 | 18007 | 30934 | 23443 | 11327 | 5866
36 | 13 | 15063 | 26618 | 20495 | 9935 | 4781
37 | 7 | 12415 | 22553 | 17942 | 8884 | 4004
38 | 5 | 10165 | 19594 | 15494 | 7761 | 3238
39 | 1 | 8411 | 16255 | 13516 | 6884 | 2717
40 | 0 | 6769 | 14119 | 11725 | 6111 | 2137
41 | 0 | 5520 | 11534 | 10119 | 5312 | 1697
42 | 0 | 4534 | 9786 | 8669 | 4743 | 1306
43 | 0 | 3596 | 8199 | 7409 | 4164 | 1025
44 | 0 | 2786 | 6949 | 6236 | 3635 | 722
45 | 0 | 2237 | 5741 | 5275 | 3297 | 538
46 | 0 | 1805 | 4690 | 4364 | 2866 | 420
47 | 0 | 1384 | 3899 | 3595 | 2384 | 274
48 | 0 | 1110 | 3178 | 2925 | 2146 | 160
49 | 0 | 851 | 2588 | 2423 | 1749 | 114
50 | 0 | 658 | 2103 | 1999 | 1435 | 78
51 | 0 | 513 | 1726 | 1558 | 1222 | 59
52 | 0 | 389 | 1354 | 1304 | 990 | 30
53 | 0 | 296 | 1113 | 1008 | 789 | 21
54 | 0 | 200 | 847 | 756 | 685 | 9
55 | 0 | 159 | 743 | 541 | 533 | 16
56 | 0 | 132 | 572 | 440 | 410 | 9
57 | 0 | 88 | 483 | 369 | 279 | 2
58 | 0 | 58 | 389 | 242 | 224 | 3
59 | 0 | 39 | 305 | 156 | 148 | 0
60 | 0 | 27 | 221 | 123 | 131 | 0
61 | 0 | 17 | 221 | 86 | 101 | 0
62 | 0 | 13 | 136 | 60 | 69 | 0
63 | 0 | 2 | 135 | 35 | 43 | 0
64 | 0 | 3 | 82 | 21 | 35 | 0
65 | 0 | 2 | 69 | 9 | 17 | 0
66 | 0 | 0 | 47 | 16 | 12 | 0
67 | 0 | 0 | 25 | 5 | 7 | 0
68 | 0 | 1 | 23 | 3 | 6 | 0
69 | 0 | 0 | 15 | 3 | 2 | 0
70 | 0 | 0 | 10 | 1 | 0 | 0
71 | 0 | 0 | 4 | 0 | 1 | 0
72 | 0 | 0 | 3 | 1 | 0 | 0
73 | 0 | 0 | 2 | 0 | 0 | 0
74 | 0 | 0 | 3 | 0 | 0 | 0
**************************************************
chosen neighbors limits: [10 20 26 29 31 32]
**************************************************
Current value of max_in_points 83629
> 99.6% inputs are cropped
Try a higher max_in_points value
**************************************************
Calibration done in 12545.5s
Model Preparation
*****************
Traceback (most recent call last):
File "test_models.py", line 215, in <module>
tester = ModelTester(net, chkp_path=chosen_chkp)
File "/data/code13/4D-PLS/utils/tester.py", line 77, in __init__
net.load_state_dict(checkpoint['model_state_dict'])
File "/root2/anaconda3/envs/pytorch1.5_4d_pls/lib/python3.7/site-packages/torch/nn/modules/module.py", line 847, in load_state_dict
self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for KPFCNN:
size mismatch for head_softmax.mlp.weight: copying a param with shape torch.Size([19, 256]) from checkpoint, the shape in current model is torch.Size([25, 256]).
size mismatch for head_softmax.batch_norm.bias: copying a param with shape torch.Size([19]) from checkpoint, the shape in current model is torch.Size([25]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment