Draw the mask on a merged image. (#775)

* Draw the mask on a merged image.

* Clippy fix.

* Enable the target point by default.

* Add to the readme.
This commit is contained in:
Laurent Mazare
2023-09-08 14:04:34 +01:00
committed by GitHub
parent 98172d46fa
commit e5703d2f56
2 changed files with 53 additions and 9 deletions

View File

@ -64,6 +64,8 @@ Check out our [examples](./candle-examples/examples/):
- [yolo-v3](./candle-examples/examples/yolo-v3/) and
[yolo-v8](./candle-examples/examples/yolo-v8/): object detection and pose
estimation models.
[segment-anything](./candle-examples/examples/segment-anything/): image
segmentation model with prompt.
Run them using the following commands:
```
cargo run --example whisper --release
@ -76,6 +78,7 @@ cargo run --example dinov2 --release -- --image path/to/myinput.jpg
cargo run --example quantized --release
cargo run --example yolo-v3 --release -- myimage.jpg
cargo run --example yolo-v8 --release -- myimage.jpg # for pose estimation, add --task pose
cargo run --example segment-anything --release -- --image myimage.jpg
```
In order to use **CUDA** add `--features cuda` to the example command line. If