diff --git a/Cargo.toml b/Cargo.toml index 30b711e..a8b7a51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bevy_ort" description = "bevy ort (onnxruntime) plugin" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["mosure "] license = "MIT" diff --git a/src/models/modnet.rs b/src/models/modnet.rs index 094569c..6cbfe6f 100644 --- a/src/models/modnet.rs +++ b/src/models/modnet.rs @@ -116,5 +116,5 @@ fn resize_image(image: &DynamicImage, x_scale: f32, y_scale: f32) -> RgbImage { let new_width = (width as f32 * x_scale) as u32; let new_height = (height as f32 * y_scale) as u32; - image.resize_exact(new_width, new_height, FilterType::Nearest).to_rgb8() + image.resize_exact(new_width, new_height, FilterType::Triangle).to_rgb8() }