mirror of
https://github.com/mii443/usls.git
synced 2025-12-03 02:58:22 +00:00
Add MODNet model (#11)
* Add MODNet for portrait matting * Minor fixes * Move assets to home directory * Add colormap * ci * Update README.md
This commit is contained in:
@@ -3,14 +3,14 @@ use usls::{models::Clip, DataLoader, Options};
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// visual
|
||||
let options_visual = Options::default()
|
||||
.with_model("../models/clip-b32-visual-dyn.onnx")
|
||||
.with_model("clip-b32-visual-dyn.onnx")?
|
||||
.with_i00((1, 1, 4).into())
|
||||
.with_profile(false);
|
||||
|
||||
// textual
|
||||
let options_textual = Options::default()
|
||||
.with_model("../models/clip-b32-textual-dyn.onnx")
|
||||
.with_tokenizer("tokenizer-clip.json")
|
||||
.with_model("clip-b32-textual-dyn.onnx")?
|
||||
.with_tokenizer("tokenizer-clip.json")?
|
||||
.with_i00((1, 1, 4).into())
|
||||
.with_profile(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user