Docs Prettier reformat (#13483)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
2f2e81614f
commit
e5185ccf63
90 changed files with 763 additions and 742 deletions
|
|
@ -23,9 +23,9 @@ This Gradio interface provides an easy and interactive way to perform object det
|
|||
|
||||
## Why Use Gradio for Object Detection?
|
||||
|
||||
* **User-Friendly Interface:** Gradio offers a straightforward platform for users to upload images and visualize detection results without any coding requirement.
|
||||
* **Real-Time Adjustments:** Parameters such as confidence and IoU thresholds can be adjusted on the fly, allowing for immediate feedback and optimization of detection results.
|
||||
* **Broad Accessibility:** The Gradio web interface can be accessed by anyone, making it an excellent tool for demonstrations, educational purposes, and quick experiments.
|
||||
- **User-Friendly Interface:** Gradio offers a straightforward platform for users to upload images and visualize detection results without any coding requirement.
|
||||
- **Real-Time Adjustments:** Parameters such as confidence and IoU thresholds can be adjusted on the fly, allowing for immediate feedback and optimization of detection results.
|
||||
- **Broad Accessibility:** The Gradio web interface can be accessed by anyone, making it an excellent tool for demonstrations, educational purposes, and quick experiments.
|
||||
|
||||
<p align="center">
|
||||
<img width="800" alt="Gradio example screenshot" src="https://github.com/RizwanMunawar/ultralytics/assets/26833433/52ee3cd2-ac59-4c27-9084-0fd05c6c33be">
|
||||
|
|
@ -41,14 +41,14 @@ pip install gradio
|
|||
|
||||
1. **Upload Image:** Click on 'Upload Image' to choose an image file for object detection.
|
||||
2. **Adjust Parameters:**
|
||||
* **Confidence Threshold:** Slider to set the minimum confidence level for detecting objects.
|
||||
* **IoU Threshold:** Slider to set the IoU threshold for distinguishing different objects.
|
||||
- **Confidence Threshold:** Slider to set the minimum confidence level for detecting objects.
|
||||
- **IoU Threshold:** Slider to set the IoU threshold for distinguishing different objects.
|
||||
3. **View Results:** The processed image with detected objects and their labels will be displayed.
|
||||
|
||||
## Example Use Cases
|
||||
|
||||
* **Sample Image 1:** Bus detection with default thresholds.
|
||||
* **Sample Image 2:** Detection on a sports image with default thresholds.
|
||||
- **Sample Image 1:** Bus detection with default thresholds.
|
||||
- **Sample Image 2:** Detection on a sports image with default thresholds.
|
||||
|
||||
## Usage Example
|
||||
|
||||
|
|
@ -104,7 +104,7 @@ if __name__ == "__main__":
|
|||
## Parameters Explanation
|
||||
|
||||
| Parameter Name | Type | Description |
|
||||
|------------------|---------|----------------------------------------------------------|
|
||||
| ---------------- | ------- | -------------------------------------------------------- |
|
||||
| `img` | `Image` | The image on which object detection will be performed. |
|
||||
| `conf_threshold` | `float` | Confidence threshold for detecting objects. |
|
||||
| `iou_threshold` | `float` | Intersection-over-union threshold for object separation. |
|
||||
|
|
@ -112,7 +112,7 @@ if __name__ == "__main__":
|
|||
### Gradio Interface Components
|
||||
|
||||
| Component | Description |
|
||||
|--------------|------------------------------------------|
|
||||
| ------------ | ---------------------------------------- |
|
||||
| Image Input | To upload the image for detection. |
|
||||
| Sliders | To adjust confidence and IoU thresholds. |
|
||||
| Image Output | To display the detection results. |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue