Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,8 @@ CLIENT = InferenceHTTPClient(
|
|
| 14 |
|
| 15 |
# Model settings
|
| 16 |
MODEL_ID = "hvacsym/5"
|
| 17 |
-
CONFIDENCE_THRESHOLD =
|
| 18 |
-
GRID_SIZE = (
|
| 19 |
|
| 20 |
def process_image(image_path):
|
| 21 |
"""Processes an uploaded image and returns the final image with bounding boxes & symbol counts."""
|
|
|
|
| 14 |
|
| 15 |
# Model settings
|
| 16 |
MODEL_ID = "hvacsym/5"
|
| 17 |
+
CONFIDENCE_THRESHOLD = 0.3 # Confidence threshold for filtering predictions
|
| 18 |
+
GRID_SIZE = (3, 3) # 4x4 segmentation
|
| 19 |
|
| 20 |
def process_image(image_path):
|
| 21 |
"""Processes an uploaded image and returns the final image with bounding boxes & symbol counts."""
|