| |
| fork, predict_blocksinenumerate(predict_blocks_list): |
| iflen(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 |
| eliflen(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 |
| |
| ifdebug: |
| 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?
Design2Code/Design2Code/metrics/visual_score.py
Lines 456 to 472 in 7a575e4
The indentation of the "elif" on line 463 seems to be incorrect?Should it be aligned with the "if" in line 458?