Instructions to use melihuzunoglu/human-fall-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use melihuzunoglu/human-fall-detection with ultralytics:
from ultralytics import YOLOvv11 model = YOLOvv11.from_pretrained("melihuzunoglu/human-fall-detection") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,17 +14,14 @@ You don't need to download the weights manually. You can load and run the model
|
|
| 14 |
|
| 15 |
```python
|
| 16 |
from ultralytics import YOLO
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
model = YOLO("melihuzunoglu/human-fall-detection")
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
results = model.predict(source="
|
| 24 |
-
|
| 25 |
-
# 3. View results
|
| 26 |
-
for result in results:
|
| 27 |
-
result.show()
|
| 28 |
```
|
| 29 |
|
| 30 |
## ✅ Supported Classes (Labels)
|
|
|
|
| 14 |
|
| 15 |
```python
|
| 16 |
from ultralytics import YOLO
|
| 17 |
+
from huggingface_hub import hf_hub_download
|
| 18 |
+
import os
|
| 19 |
|
| 20 |
+
model_path = hf_hub_download(repo_id="melihuzunoglu/human-fall-detection", filename="best.pt")
|
|
|
|
| 21 |
|
| 22 |
+
model = YOLO(model_path)
|
| 23 |
+
|
| 24 |
+
results = model.predict(source="image1.jpg", conf=0.25, save=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
```
|
| 26 |
|
| 27 |
## ✅ Supported Classes (Labels)
|