Update scripts/1_generate_iqa_brief.py
Browse files
scripts/1_generate_iqa_brief.py
CHANGED
|
@@ -377,7 +377,14 @@ if __name__ == "__main__":
|
|
| 377 |
image_A = None
|
| 378 |
|
| 379 |
if degradation == "Composite":
|
| 380 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 381 |
else:
|
| 382 |
annotation = degradation
|
| 383 |
|
|
|
|
| 377 |
image_A = None
|
| 378 |
|
| 379 |
if degradation == "Composite":
|
| 380 |
+
key_dict = {"haze": "Fog",
|
| 381 |
+
"low": "Low-light",
|
| 382 |
+
"rain": "Rain",
|
| 383 |
+
"snow": "Snow"}
|
| 384 |
+
new_label = []
|
| 385 |
+
for one_label in label.split("_"):
|
| 386 |
+
new_label.append(key_dict[one_label])
|
| 387 |
+
annotation = ", ".join(new_label)
|
| 388 |
else:
|
| 389 |
annotation = degradation
|
| 390 |
|