Skip to content

Commit 44daa14

Browse files
committed
fix log message
1 parent af88790 commit 44daa14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_speech_commands.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ def test():
130130
print("testing...")
131131
probabilities, predictions = test()
132132
if args.generate_kaggle_submission:
133-
print("generating kaggle submission file '%s'..." % args.output)
134133
output_file_name = "%s" % os.path.splitext(os.path.basename(args.model))[0]
135134
if args.multi_crop:
136135
output_file_name = "%s-crop" % output_file_name
137136
output_file_name = "%s.csv" % output_file_name
138137
if args.output:
139138
output_file_name = args.output
139+
print("generating kaggle submission file '%s'..." % output_file_name)
140140
with open(output_file_name, 'w') as outfile:
141141
fieldnames = ['fname', 'label']
142142
writer = csv.DictWriter(outfile, fieldnames=fieldnames)

0 commit comments

Comments
 (0)