Kalbe-x-Bangkit
commited on
Commit
•
67a2742
1
Parent(s):
7f6fd0a
Make it unresize image for detection output.
Browse files
app.py
CHANGED
@@ -445,7 +445,7 @@ if uploaded_file is not None:
|
|
445 |
image = cv2.imdecode(file_bytes, 1)
|
446 |
if st.button('Auto Detect'):
|
447 |
st.write("Processing...")
|
448 |
-
input_image = preprocess_image(image)
|
449 |
pred_bbox, pred_label, pred_label_confidence = predict(model, input_image)
|
450 |
|
451 |
# Updated label mapping based on the dataset
|
|
|
445 |
image = cv2.imdecode(file_bytes, 1)
|
446 |
if st.button('Auto Detect'):
|
447 |
st.write("Processing...")
|
448 |
+
# input_image = preprocess_image(image)
|
449 |
pred_bbox, pred_label, pred_label_confidence = predict(model, input_image)
|
450 |
|
451 |
# Updated label mapping based on the dataset
|