Skip to content

Commit ea0aca2

Browse files
committed
[fix] remove the empty column y_psnr in csv generation to align with FCM cttc
1 parent 04699f8 commit ea0aca2

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

scripts/metrics/gen_mpeg_cttc_csv.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ def generate_csv_classwise_video_map(
203203

204204
output_df = df_append(output_df, class_wise_results_df)
205205

206-
# add empty y_psnr column
207-
output_df.insert(
208-
loc=4, column="y_psnr", value=["" for i in range(output_df.shape[0])]
209-
)
210-
211206
return output_df
212207

213208

@@ -270,11 +265,6 @@ def generate_csv_classwise_video_mota(
270265

271266
output_df = df_append(output_df, class_wise_results_df)
272267

273-
# add empty y_psnr column
274-
output_df.insert(
275-
loc=4, column="y_psnr", value=["" for i in range(output_df.shape[0])]
276-
)
277-
278268
return output_df
279269

280270

@@ -287,11 +277,6 @@ def generate_csv(result_path, seq_list, nb_operation_points):
287277
# accuracy in % for MPEG template
288278
result_df["end_accuracy"] = result_df["end_accuracy"].apply(lambda x: x * 100)
289279

290-
# add empty y_psnr column
291-
result_df.insert(
292-
loc=4, column="y_psnr", value=["" for i in range(result_df.shape[0])]
293-
)
294-
295280
return result_df
296281

297282

0 commit comments

Comments
 (0)