Skip to content

Commit

Permalink
added some debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Thapa committed Jun 6, 2024
1 parent 743262e commit 73a9af3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test_dragonfly_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,10 @@ def main():
patch_indices = model_outputs["query_ranks"][0].cpu().tolist()

highlighted_image = combine_patches(high_patches, high_image_padded.size, se, patch_indices)
highlighted_image.resize(image.size)

prefix = "/".join(image_path.split(".")[:-1])
image_type = image_path.split(".")[-1]

highlighted_image.resize(image.size)

save_path = f"{prefix}_highlighted.{image_type}"
highlighted_image.save(save_path)

Expand Down

0 comments on commit 73a9af3

Please sign in to comment.