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:
@ -4,11 +4,6 @@
|
||||
cargo run -r --example db
|
||||
```
|
||||
|
||||
## ONNX Model
|
||||
|
||||
- [ppocr-v3-db-dyn](https://github.com/jamjamjon/assets/releases/download/v0.0.1/ppocr-v3-db-dyn.onnx)
|
||||
- [ppocr-v4-db-dyn](https://github.com/jamjamjon/assets/releases/download/v0.0.1/ppocr-v4-db-dyn.onnx)
|
||||
|
||||
### Speed test
|
||||
|
||||
| Model | Image size | TensorRT<br />f16<br />batch=1<br />(ms) | TensorRT<br />f32<br />batch=1<br />(ms) | CUDA<br />f32<br />batch=1<br />(ms) |
|
||||
@ -20,4 +15,5 @@ cargo run -r --example db
|
||||
|
||||
## Results
|
||||
|
||||

|
||||

|
||||

|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 35 KiB |
@ -10,14 +10,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.with_confs(&[0.4])
|
||||
.with_min_width(5.0)
|
||||
.with_min_height(12.0)
|
||||
.with_model("ppocr-v4-db-dyn.onnx")?;
|
||||
.with_model("db/ppocr-v4-db-dyn.onnx")?;
|
||||
|
||||
let mut model = DB::new(options)?;
|
||||
|
||||
// load image
|
||||
let x = vec![
|
||||
DataLoader::try_read("./assets/db.png")?,
|
||||
DataLoader::try_read("./assets/2.jpg")?,
|
||||
let x = [
|
||||
DataLoader::try_read("images/db.png")?,
|
||||
DataLoader::try_read("images/street.jpg")?,
|
||||
];
|
||||
|
||||
// run
|
||||
|
Reference in New Issue
Block a user