Spaces:
Runtime error
Runtime error
Soham Chandratre
commited on
Commit
·
77fb247
1
Parent(s):
49ebad1
minor changes
Browse files
model/__pycache__/pothole_model.cpython-311.pyc
CHANGED
|
Binary files a/model/__pycache__/pothole_model.cpython-311.pyc and b/model/__pycache__/pothole_model.cpython-311.pyc differ
|
|
|
model/pothole_model.py
CHANGED
|
@@ -44,7 +44,7 @@ def load_image_model(image):
|
|
| 44 |
data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32)
|
| 45 |
|
| 46 |
# Replace this with the path to your image
|
| 47 |
-
image = Image.open(
|
| 48 |
|
| 49 |
# resizing the image to be at least 224x224 and then cropping from the center
|
| 50 |
size = (224, 224)
|
|
|
|
| 44 |
data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32)
|
| 45 |
|
| 46 |
# Replace this with the path to your image
|
| 47 |
+
image = Image.open(image).convert("RGB")
|
| 48 |
|
| 49 |
# resizing the image to be at least 224x224 and then cropping from the center
|
| 50 |
size = (224, 224)
|