Spaces:
Sleeping
Sleeping
Update app.py
#4
by Xaviant - opened
app.py
CHANGED
|
@@ -24,10 +24,10 @@ class_names = ['normal', 'buried']
|
|
| 24 |
# 3. Fungsi Preprocessing
|
| 25 |
def prepare_image(image_bytes):
|
| 26 |
"""
|
| 27 |
-
Preprocessing gambar untuk model
|
| 28 |
- Konversi ke RGB (3 channel)
|
| 29 |
- Resize ke 224x224
|
| 30 |
-
- Preprocessing
|
| 31 |
"""
|
| 32 |
try:
|
| 33 |
img = Image.open(io.BytesIO(image_bytes))
|
|
|
|
| 24 |
# 3. Fungsi Preprocessing
|
| 25 |
def prepare_image(image_bytes):
|
| 26 |
"""
|
| 27 |
+
Preprocessing gambar untuk model ResNet50
|
| 28 |
- Konversi ke RGB (3 channel)
|
| 29 |
- Resize ke 224x224
|
| 30 |
+
- Preprocessing ResNet50
|
| 31 |
"""
|
| 32 |
try:
|
| 33 |
img = Image.open(io.BytesIO(image_bytes))
|