Skip to content

Commit abd4047

Browse files
authored
chore(deps): bump aksr to 0.0.4 (#155)
1 parent 22d0df5 commit abd4047

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exclude = ["assets/*", "examples/*", "runs/*", "benches/*", "tests/*"]
1414
[dependencies]
1515
paste = "1.0.15"
1616
anyhow = { version = "1" }
17-
aksr = { version = "0.0.3" }
17+
aksr = { version = "0.0.4" }
1818
ab_glyph = { version = "0.2.29" }
1919
image = { version = "0.25" }
2020
imageproc = { version = "0.25" }

examples/grounding-dino/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn main() -> Result<()> {
4848
let config = Config::grounding_dino_tiny()
4949
.with_model_dtype(args.dtype.parse()?)
5050
.with_model_device(args.device.parse()?)
51-
.with_text_names(&args.labels.iter().map(|x| x.as_str()).collect::<Vec<_>>())
51+
.with_text_names_owned(&args.labels)
5252
.with_class_confs(&[0.25])
5353
.with_text_confs(&[0.25])
5454
.commit()?;

examples/owlv2/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn main() -> Result<()> {
5151
// owlv2_base()
5252
.with_model_dtype(args.dtype.parse()?)
5353
.with_model_device(args.device.parse()?)
54-
.with_text_names(&args.labels.iter().map(|x| x.as_str()).collect::<Vec<_>>())
54+
.with_text_names_owned(&args.labels)
5555
.commit()?;
5656
let mut model = OWLv2::new(config)?;
5757

src/core/engine.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ pub struct Engine {
8080
pub spec: String,
8181
/// Execution device.
8282
pub device: Device,
83-
#[args(inc)]
83+
#[args(extend)]
8484
pub iiixs: Vec<Iiix>,
85-
#[args(aka = "parameters")]
85+
#[args(alias = "parameters")]
8686
pub params: Option<usize>,
87-
#[args(aka = "memory")]
87+
#[args(alias = "memory")]
8888
pub wbmems: Option<usize>,
8989
/// Input min-opt-max configurations.
9090
pub inputs_minoptmax: Vec<Vec<MinOptMax>>,

src/core/ort_engine.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ pub struct OrtEngine {
2626
pub spec: String,
2727
/// Execution device.
2828
pub device: Device,
29-
#[args(inc)]
29+
#[args(extend)]
3030
pub iiixs: Vec<Iiix>,
31-
#[args(aka = "parameters")]
31+
#[args(alias = "parameters")]
3232
pub params: Option<usize>,
33-
#[args(aka = "memory")]
33+
#[args(alias = "memory")]
3434
pub wbmems: Option<usize>,
3535
/// Input min-opt-max configurations.
3636
pub inputs_minoptmax: Vec<Vec<MinOptMax>>,

src/viz/styles.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ pub struct Style {
2727
skeleton: Option<Skeleton>, // For Keypoints
2828
colormap256: Option<ColorMap256>, // For Masks
2929
decimal_places: usize,
30-
#[args(set_pre = "show")]
30+
#[args(setter_prefix = "show")]
3131
confidence: bool,
32-
#[args(set_pre = "show")]
32+
#[args(setter_prefix = "show")]
3333
name: bool,
34-
#[args(set_pre = "show")]
34+
#[args(setter_prefix = "show")]
3535
id: bool,
3636
}
3737

0 commit comments

Comments
 (0)