Download test.py from Cappystone/yolo_detect: direct link, hf CLI and curl.
- Browser
- Download file 190 Bytes
-
https://huggingface.co/datasets/Cappystone/yolo_detect/resolve/main/test.py
- Command line
-
hf download hf://datasets/Cappystone/yolo_detect/test.py
-
curl -L -o test.py https://huggingface.co/datasets/Cappystone/yolo_detect/resolve/main/test.py
190 Bytes
| from ultralytics import YOLO | |
| if __name__ == "__main__": | |
| model = YOLO(r"C:\Users\shrey\Downloads\dataset\runs\detect\train\weights\best.pt") | |
| metrics = model.val(data="data.yaml") |