Skip to content

Commit b7d439e

Browse files
sarhakorfracape
authored andcommitted
[fix] bug in no-cactus handling
1 parent 7c83cc8 commit b7d439e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/metrics/compute_overall_kmac_per_px.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ def generate_csv_classwise_video_gmac(dataset_name, result_path, list_of_classwi
248248
}
249249

250250
if args.dataset_name == "SFU" and args.no_cactus:
251-
class_ab["CLASS-AB"].remove("Cactus_1920x1080_50")
251+
if "Cactus_1920x1080_50" in class_ab["CLASS-AB"]:
252+
class_ab["CLASS-AB"].remove("Cactus_1920x1080_50")
252253

253254
output_df = generate_csv_classwise_video_gmac(
254255
args.dataset_name,

0 commit comments

Comments
 (0)