-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Design2Code/Design2Code/metrics/visual_score.py
Lines 456 to 472 in 7a575e4
| for k, predict_blocks in enumerate(predict_blocks_list): | |
| if len(predict_blocks) == 0: | |
| print("[Warning] No detected blocks in: ", predict_img_list[k]) | |
| final_clip_score = calculate_clip_similarity_with_blocks(predict_img_list[k], original_img, predict_blocks, original_blocks) | |
| return_score_list.append([0.0, 0.2 * final_clip_score, (0.0, 0.0, 0.0, 0.0, final_clip_score)]) | |
| continue | |
| elif len(original_blocks) == 0: | |
| print("[Warning] No detected blocks in: ", original_img) | |
| final_clip_score = calculate_clip_similarity_with_blocks(predict_img_list[k], original_img, predict_blocks, original_blocks) | |
| return_score_list.append([0.0, 0.2 * final_clip_score, (0.0, 0.0, 0.0, 0.0, final_clip_score)]) | |
| continue | |
| if debug: | |
| print(predict_blocks) | |
| print(original_blocks) | |
The indentation of the "elif" on line 463 seems to be incorrect?Should it be aligned with the "if" in line 458?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels