Spaces:
Runtime error
Runtime error
Download const.py from robmarkcole/yolov5-ui: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/robmarkcole/yolov5-ui/resolve/main/const.py
- Command line
-
hf download hf://spaces/robmarkcole/yolov5-ui/const.py
-
curl -L -o const.py https://huggingface.co/spaces/robmarkcole/yolov5-ui/resolve/main/const.py
369 Bytes
| # rgb(red, green, blue) | |
| RED = (255, 0, 0) # For objects within the ROI | |
| GREEN = (0, 255, 0) # For ROI box | |
| YELLOW = (255, 255, 0) # For objects outside the ROI | |
| DEFAULT_IMAGE = "demo.jpg" | |
| PRETRAINED_MODELS = [ | |
| "yolov5n", | |
| "yolov5s", | |
| "yolov5m", | |
| "yolov5l", | |
| "yolov5x" | |
| ] | |
| IMAGE_SIZES = [320, 640, 1280] | |
| MIN_CONF = 0.1 | |
| MAX_CONF = 1.0 | |
| DEFAULT_CONF = 0.5 |