Skip to content

Indent Error in visual_score.py #29

Description

@dcy11011

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions