mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 02:38:10 +00:00
Blip attention mask + readme (#1146)
* Add the attention mask to the blip model. * Add a readme.
This commit is contained in:
19
candle-examples/examples/blip/README.md
Normal file
19
candle-examples/examples/blip/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
# candle-blip
|
||||
|
||||
The
|
||||
[blip-image-captioning](https://huggingface.co/Salesforce/blip-image-captioning-base)
|
||||
model can generate captions for an input image.
|
||||
|
||||
## Running on an example
|
||||
|
||||
```bash
|
||||
cargo run --example blip --release -- --image candle-examples/examples/yolo-v8/assets/bike.jpg
|
||||
```
|
||||
|
||||
```
|
||||
Running on CPU, to run on GPU, build this example with `--features cuda`
|
||||
loaded image Tensor[dims 3, 384, 384; f32]
|
||||
model built
|
||||
several cyclists are riding down a road with cars behind them%
|
||||
```
|
||||

|
Reference in New Issue
Block a user