ultralytics 8.0.94 HUBDatasetStats() Segment and Pose support (#2450)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: JF Chen <k-2feng@hotmail.com> Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com> Co-authored-by: Laughing-q <1185102784@qq.com>
This commit is contained in:
parent
af49a85cf3
commit
e21428ca4e
51 changed files with 948 additions and 81 deletions
|
|
@ -50,7 +50,7 @@ In this example, replace `API_KEY` with your actual API key, `MODEL_ID` with the
|
|||
|
||||
You can use the YOLO Inference API with the command-line interface (CLI) by utilizing the `curl` command. Replace `API_KEY` with your actual API key, `MODEL_ID` with the desired model ID, and `image.jpg` with the path to the image you want to analyze:
|
||||
|
||||
```commandline
|
||||
```bash
|
||||
curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
|
||||
-H "x-api-key: API_KEY" \
|
||||
-F "image=@/path/to/image.jpg" \
|
||||
|
|
@ -89,13 +89,13 @@ In this example, the `data` dictionary contains the query arguments `size`, `con
|
|||
|
||||
This will send the query parameters along with the file in the POST request. See the table below for a full list of available inference arguments.
|
||||
|
||||
| Argument | Default | Type | Notes |
|
||||
|--------------|---------|---------|-----------------------------------------|
|
||||
| `size` | `640` | `int` | allowable range is `32` - `1280` pixels |
|
||||
| `confidence` | `0.25` | `float` | allowable range is `0.01` - `1.0` |
|
||||
| `iou` | `0.45` | `float` | allowable range is `0.0` - `0.95` |
|
||||
| `url` | `''` | `str` | |
|
||||
| `normalize` | `False` | `bool` | |
|
||||
| Inference Argument | Default | Type | Notes |
|
||||
|--------------------|---------|---------|------------------------------------------------|
|
||||
| `size` | `640` | `int` | valid range is `32` - `1280` pixels |
|
||||
| `confidence` | `0.25` | `float` | valid range is `0.01` - `1.0` |
|
||||
| `iou` | `0.45` | `float` | valid range is `0.0` - `0.95` |
|
||||
| `url` | `''` | `str` | optional image URL if not image file is passed |
|
||||
| `normalize` | `False` | `bool` | |
|
||||
|
||||
## Return JSON format
|
||||
|
||||
|
|
@ -124,7 +124,7 @@ YOLO detection models, such as `yolov8n.pt`, can return JSON responses from loca
|
|||
```
|
||||
|
||||
=== "CLI API"
|
||||
```commandline
|
||||
```bash
|
||||
curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
|
||||
-H "x-api-key: API_KEY" \
|
||||
-F "image=@/path/to/image.jpg" \
|
||||
|
|
@ -218,7 +218,7 @@ YOLO segmentation models, such as `yolov8n-seg.pt`, can return JSON responses fr
|
|||
```
|
||||
|
||||
=== "CLI API"
|
||||
```commandline
|
||||
```bash
|
||||
curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
|
||||
-H "x-api-key: API_KEY" \
|
||||
-F "image=@/path/to/image.jpg" \
|
||||
|
|
@ -356,7 +356,7 @@ YOLO pose models, such as `yolov8n-pose.pt`, can return JSON responses from loca
|
|||
```
|
||||
|
||||
=== "CLI API"
|
||||
```commandline
|
||||
```bash
|
||||
curl -X POST "https://api.ultralytics.com/v1/predict/MODEL_ID" \
|
||||
-H "x-api-key: API_KEY" \
|
||||
-F "image=@/path/to/image.jpg" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue