Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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(
|
| 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")
|