poptree commited on
Commit
6970df9
·
verified ·
1 Parent(s): 04710ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def run_model(target_dir, model, anchor_size=100) -> dict:
65
  image_names = glob.glob(os.path.join(target_dir, "images", "*"))
66
 
67
  # sample 100 images, HF cannot solve more images.
68
- sd = len(image_name) // 100
69
 
70
  image_names = sorted(image_names)[::sd]
71
  print(f"Found {len(image_names)} images")
 
65
  image_names = glob.glob(os.path.join(target_dir, "images", "*"))
66
 
67
  # sample 100 images, HF cannot solve more images.
68
+ sd = len(image_names) // 100
69
 
70
  image_names = sorted(image_names)[::sd]
71
  print(f"Found {len(image_names)} images")