Update app.py
Browse files
app.py
CHANGED
|
@@ -35,9 +35,9 @@ DINOV2_MODEL = "facebook/dinov2-small"
|
|
| 35 |
# For PHash normalization when combining scores: assumed max hamming bits (typical phash=64)
|
| 36 |
MAX_PHASH_BITS = 64
|
| 37 |
|
| 38 |
-
#
|
| 39 |
# INITIALIZE MODELS
|
| 40 |
-
#
|
| 41 |
print("Initializing models and helpers...")
|
| 42 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 43 |
if DEVICE.type == "cpu":
|
|
|
|
| 35 |
# For PHash normalization when combining scores: assumed max hamming bits (typical phash=64)
|
| 36 |
MAX_PHASH_BITS = 64
|
| 37 |
|
| 38 |
+
# ----------------------
|
| 39 |
# INITIALIZE MODELS
|
| 40 |
+
# ----------------------
|
| 41 |
print("Initializing models and helpers...")
|
| 42 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 43 |
if DEVICE.type == "cpu":
|