File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 9
9
import pandas as pd
10
10
import matplotlib .pyplot as plt
11
11
12
- file = 'result/first/test_A_2.csv'
13
- # file = 'result/tf /A_1.csv'
12
+ # file = 'result/first/test_A_2.csv'
13
+ file = 'result/tf2 /A_1.csv'
14
14
15
15
df = pd .read_csv (file , header = None )
16
16
Original file line number Diff line number Diff line change 8
8
import pandas as pd
9
9
import csv
10
10
11
- file = 'result/tf/A_1.csv'
11
+ file = 'result/tf2/A_1.csv'
12
+ file1 = 'result/tf2/test_image_name.csv'
13
+ file2 = 'result/tf2/test_image_result.csv'
14
+
12
15
13
16
def write_to_csv (aug_softmax ):
14
17
with open (file , 'w' , encoding = 'utf-8' ) as csvfile :
@@ -18,8 +21,6 @@ def write_to_csv(aug_softmax):
18
21
for c in range (0 ,30 ):
19
22
spamwriter .writerow ([item , c + 1 , aug_softmax [item ][c ]/ the_sum ])
20
23
21
- file1 = 'result/tf/test_image_name.csv'
22
- file2 = 'result/tf/test_image_result.csv'
23
24
24
25
df1 = pd .read_csv (file1 , header = None )
25
26
df2 = pd .read_csv (file2 , header = None , sep = ' ' )
You can’t perform that action at this time.
0 commit comments