This commit is contained in:
jamjamjon
2025-05-19 23:25:48 +08:00
parent 5394c9ba27
commit 26de63d239
36 changed files with 4946 additions and 329 deletions

View File

@@ -51,7 +51,7 @@ fn main() -> Result<()> {
// owlv2_base()
.with_model_dtype(args.dtype.as_str().try_into()?)
.with_model_device(args.device.as_str().try_into()?)
.with_class_names(&args.labels.iter().map(|x| x.as_str()).collect::<Vec<_>>())
.with_text_names(&args.labels.iter().map(|x| x.as_str()).collect::<Vec<_>>())
.commit()?;
let mut model = OWLv2::new(config)?;