Skip to content

Commit 381d1ab

Browse files
committed
Wrap all these rubbish up
1 parent 1ae6ea6 commit 381d1ab

42 files changed

Lines changed: 685 additions & 17 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

qa4camera/eval.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def eval_scene(model, scene_folder, crop_size=(500, 500), sort_result=None):
7979

8080
if __name__ == "__main__":
8181
is_cuda = True
82-
model = torch.load("./model/resnet50-test-1e-5.pth").cuda()
82+
model = torch.load("./model/resnet50extended-full-1e-5.pth").cuda()
8383
scenes = range(81, 101)
8484
all_srcc = []
8585
for s in scenes:
@@ -90,7 +90,8 @@ def eval_scene(model, scene_folder, crop_size=(500, 500), sort_result=None):
9090
(500, 500),
9191
f"/root/dataset/score_and_sort/Training/sort/{s:03d}.csv",
9292
)
93-
# print(result)
93+
for k in sorted(result.keys()):
94+
print(k, result[k])
9495
print(f"SRCC: {srcc}")
9596
all_srcc.append(srcc)
9697
print(f"Overall SRCC: {np.mean(all_srcc, axis=0)}")
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_001.jpg,13,15,15,15
3+
B_001.jpg,12,11,11,11
4+
C_001.jpg,4,3,4,3
5+
D_001.jpg,14,13,12,13
6+
E_001.jpg,9,9,8,9
7+
F_001.jpg,2,2,2,2
8+
G_001.jpg,3,4,3,4
9+
H_001.jpg,11,12,13,12
10+
I_001.jpg,1,1,1,1
11+
J_001.jpg,7,7,7,8
12+
K_001.jpg,8,8,9,7
13+
L_001.jpg,10,10,10,10
14+
M_001.jpg,6,6,5,5
15+
N_001.jpg,5,5,6,6
16+
O_001.jpg,15,14,14,14
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_002.jpg,14,14,15,12
3+
B_002.jpg,7,10,10,10
4+
C_002.jpg,6,8,9,6
5+
D_002.jpg,12,12,13,14
6+
E_002.jpg,2,2,2,3
7+
F_002.jpg,10,9,8,8
8+
G_002.jpg,15,15,12,13
9+
H_002.jpg,4,3,3,4
10+
I_002.jpg,1,1,1,1
11+
J_002.jpg,5,6,5,5
12+
K_002.jpg,3,4,4,7
13+
L_002.jpg,13,13,14,15
14+
M_002.jpg,9,5,7,9
15+
N_002.jpg,8,7,6,2
16+
O_002.jpg,11,11,11,11
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_003.jpg,12,14,6,11
3+
B_003.jpg,11,13,10,12
4+
C_003.jpg,4,4,9,4
5+
D_003.jpg,13,11,12,15
6+
E_003.jpg,6,6,11,10
7+
F_003.jpg,9,8,13,9
8+
G_003.jpg,10,10,8,8
9+
H_003.jpg,1,1,1,1
10+
I_003.jpg,2,2,5,6
11+
J_003.jpg,15,15,15,14
12+
K_003.jpg,5,5,4,5
13+
L_003.jpg,3,3,7,7
14+
M_003.jpg,7,7,2,2
15+
N_003.jpg,8,12,3,3
16+
O_003.jpg,14,9,14,13
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_004.jpg,14,14,14,14
3+
B_004.jpg,12,11,10,11
4+
C_004.jpg,10,15,15,15
5+
D_004.jpg,7,6,5,7
6+
E_004.jpg,8,2,6,3
7+
F_004.jpg,3,8,7,10
8+
G_004.jpg,11,4,8,8
9+
H_004.jpg,4,10,4,5
10+
I_004.jpg,1,12,11,12
11+
J_004.jpg,6,9,9,6
12+
K_004.jpg,2,3,1,4
13+
L_004.jpg,15,13,13,13
14+
M_004.jpg,9,5,3,2
15+
N_004.jpg,5,1,2,1
16+
O_004.jpg,13,7,12,9
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_005.jpg,15,14,13,15
3+
B_005.jpg,11,10,12,12
4+
C_005.jpg,13,11,9,10
5+
D_005.jpg,6,5,4,2
6+
E_005.jpg,8,7,3,9
7+
F_005.jpg,2,2,8,5
8+
G_005.jpg,12,8,7,8
9+
H_005.jpg,3,3,5,6
10+
I_005.jpg,1,15,15,14
11+
J_005.jpg,5,12,11,11
12+
K_005.jpg,4,1,10,3
13+
L_005.jpg,10,9,6,7
14+
M_005.jpg,14,13,14,13
15+
N_005.jpg,9,4,1,1
16+
O_005.jpg,7,6,2,4
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_006.jpg,13,13,14,12
3+
B_006.jpg,3,3,4,1
4+
C_006.jpg,11,9,11,9
5+
D_006.jpg,14,14,13,13
6+
E_006.jpg,4,5,9,8
7+
F_006.jpg,6,6,6,11
8+
G_006.jpg,8,8,10,5
9+
H_006.jpg,5,4,1,2
10+
I_006.jpg,1,1,3,4
11+
J_006.jpg,7,7,8,7
12+
K_006.jpg,2,2,2,3
13+
L_006.jpg,15,15,15,14
14+
M_006.jpg,10,10,5,6
15+
N_006.jpg,12,11,7,10
16+
O_006.jpg,9,12,12,15
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_007.jpg,4,6,7,8
3+
B_007.jpg,8,8,9,7
4+
C_007.jpg,5,3,6,5
5+
D_007.jpg,11,9,14,13
6+
E_007.jpg,10,14,13,14
7+
F_007.jpg,3,5,2,3
8+
G_007.jpg,13,11,11,10
9+
H_007.jpg,9,7,8,12
10+
I_007.jpg,2,2,3,2
11+
J_007.jpg,12,10,10,9
12+
K_007.jpg,14,13,12,11
13+
L_007.jpg,1,1,1,1
14+
M_007.jpg,6,4,4,6
15+
N_007.jpg,7,12,5,4
16+
O_007.jpg,15,15,15,15
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_008.jpg,14,13,15,13
3+
B_008.jpg,5,14,8,7
4+
C_008.jpg,8,7,6,9
5+
D_008.jpg,15,15,10,15
6+
E_008.jpg,2,5,5,14
7+
F_008.jpg,1,1,1,1
8+
G_008.jpg,10,9,11,10
9+
H_008.jpg,4,3,3,4
10+
I_008.jpg,3,2,4,2
11+
J_008.jpg,13,12,14,12
12+
K_008.jpg,11,10,12,6
13+
L_008.jpg,6,6,9,8
14+
M_008.jpg,9,8,7,5
15+
N_008.jpg,7,4,2,3
16+
O_008.jpg,12,11,13,11
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
,Color,Exposure,Noise,Texture
2+
A_009.jpg,9,11,5,5
3+
B_009.jpg,15,12,15,12
4+
C_009.jpg,6,2,9,10
5+
D_009.jpg,12,13,14,13
6+
E_009.jpg,8,8,8,11
7+
F_009.jpg,5,4,4,1
8+
G_009.jpg,10,9,10,8
9+
H_009.jpg,13,14,6,7
10+
I_009.jpg,1,1,1,3
11+
J_009.jpg,3,6,11,9
12+
K_009.jpg,7,7,7,6
13+
L_009.jpg,11,10,13,15
14+
M_009.jpg,4,5,3,2
15+
N_009.jpg,2,3,2,4
16+
O_009.jpg,14,15,12,14

0 commit comments

Comments
 (0)