Update models/windmill_model.py
Browse files- models/windmill_model.py +2 -2
models/windmill_model.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
import
|
| 2 |
|
| 3 |
def load_windmill_model():
|
| 4 |
-
model =
|
| 5 |
return model
|
|
|
|
| 1 |
+
from transformers import AutoModelForObjectDetection
|
| 2 |
|
| 3 |
def load_windmill_model():
|
| 4 |
+
model = AutoModelForObjectDetection.from_pretrained("ultralytics/yolov5s") # You may want to customize this model
|
| 5 |
return model
|