mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 15:45:41 +00:00
0.0.14: DataLoader
now support video and streaming
- Added `Hub` for resource management - Updated `DataLoader` to support video and streaming - Updated `CI` - Replaced `println!` with `tracing` for logging
This commit is contained in:
10
examples/grounding-dino/README.md
Normal file
10
examples/grounding-dino/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
## Quick Start
|
||||
|
||||
```shell
|
||||
cargo run -r --example grounding-dino
|
||||
```
|
||||
|
||||
|
||||
## Results
|
||||
|
||||

|
@ -16,14 +16,15 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.with_i50((1, 1, 4).into())
|
||||
.with_i51((256, 256, 512).into())
|
||||
.with_i52((256, 256, 512).into())
|
||||
.with_model("groundingdino-swint-ogc-dyn-u8.onnx")? // TODO: current onnx model does not support bs > 1
|
||||
// .with_model("groundingdino-swint-ogc-dyn-f32.onnx")?
|
||||
.with_model("grounding-dino/swint-ogc-dyn-u8.onnx")? // TODO: current onnx model does not support bs > 1
|
||||
// .with_model("grounding-dino/swint-ogc-dyn-f32.onnx")?
|
||||
.with_tokenizer("grounding-dino/tokenizer.json")?
|
||||
.with_confs(&[0.2])
|
||||
.with_profile(false);
|
||||
let mut model = GroundingDINO::new(opts)?;
|
||||
|
||||
// Load images and set class names
|
||||
let x = [DataLoader::try_read("./assets/bus.jpg")?];
|
||||
let x = [DataLoader::try_read("images/bus.jpg")?];
|
||||
let texts = [
|
||||
"person", "hand", "shoes", "bus", "dog", "cat", "sign", "tie", "monitor", "window",
|
||||
"glasses", "tree", "head",
|
||||
|
Reference in New Issue
Block a user