mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 15:45:41 +00:00
v0.0.16: Add Viewer
for image show
* Add `Viewer` for image-show * Add .`with_ixx()` to simplify model building with `Options` * Update `MinOptMax`
This commit is contained in:
@ -4,9 +4,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// build model
|
||||
let options = Options::default()
|
||||
.with_model("modnet/dyn-f32.onnx")?
|
||||
.with_i00((1, 1, 4).into())
|
||||
.with_i02((416, 512, 800).into())
|
||||
.with_i03((416, 512, 800).into());
|
||||
.with_ixx(0, 2, (416, 512, 800).into())
|
||||
.with_ixx(0, 3, (416, 512, 800).into());
|
||||
let mut model = MODNet::new(options)?;
|
||||
|
||||
// load image
|
||||
|
Reference in New Issue
Block a user