Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -318,7 +318,7 @@ class ForgeryDetector:
|
|
| 318 |
|
| 319 |
# Run localization
|
| 320 |
with torch.no_grad():
|
| 321 |
-
logits,
|
| 322 |
prob_map = torch.sigmoid(logits).cpu().numpy()[0, 0]
|
| 323 |
|
| 324 |
# Resize probability map to match original image size to avoid index mismatch errors
|
|
|
|
| 318 |
|
| 319 |
# Run localization
|
| 320 |
with torch.no_grad():
|
| 321 |
+
logits, decoder_features = self.model(image_tensor)
|
| 322 |
prob_map = torch.sigmoid(logits).cpu().numpy()[0, 0]
|
| 323 |
|
| 324 |
# Resize probability map to match original image size to avoid index mismatch errors
|