Update README.md
Browse files
README.md
CHANGED
@@ -26,10 +26,10 @@ You can load the model and perform detection on an image as follows:
|
|
26 |
from ultralytics import YOLO
|
27 |
|
28 |
# Load the model
|
29 |
-
model = YOLO("./mask-11x.pt")
|
30 |
|
31 |
# Perform detection on an image
|
32 |
-
results = model("image.png")
|
33 |
|
34 |
# Display or process the results
|
35 |
results.show() # This will display the image with detected objects
|
|
|
26 |
from ultralytics import YOLO
|
27 |
|
28 |
# Load the model
|
29 |
+
model = YOLO("./mask-11x-224.pt")
|
30 |
|
31 |
# Perform detection on an image
|
32 |
+
results = model("image.png", imgsz=224)
|
33 |
|
34 |
# Display or process the results
|
35 |
results.show() # This will display the image with detected objects
|