generativeai commited on
Commit
73f7e3d
1 Parent(s): 9ebca05

Update image_similarity.py

Browse files
Files changed (1) hide show
  1. image_similarity.py +2 -2
image_similarity.py CHANGED
@@ -43,8 +43,8 @@ class ImageSimilarity(object):
43
  # you will get larger clusters which have less similar images in it. Threshold 0 - 1.00
44
  # A threshold of 1.00 means the two images are exactly the same. Since we are finding near
45
  # duplicate images, we can set it at 0.99 or any number 0 < X < 1.00.
46
- threshold = 0.99
47
- near_duplicates = [image for image in processed_images if image[0] < threshold]
48
 
49
  for score, image_id1, image_id2 in near_duplicates:
50
  results.append({
 
43
  # you will get larger clusters which have less similar images in it. Threshold 0 - 1.00
44
  # A threshold of 1.00 means the two images are exactly the same. Since we are finding near
45
  # duplicate images, we can set it at 0.99 or any number 0 < X < 1.00.
46
+ threshold = 1.00
47
+ near_duplicates = [image for image in processed_images if image[0] <= threshold]
48
 
49
  for score, image_id1, image_id2 in near_duplicates:
50
  results.append({