fix: remove deprecated function usage

This commit is contained in:
Carson M.
2024-11-12 13:40:29 -06:00
parent 82dcf8410e
commit 3f2fba1cbf

View File

@@ -37,7 +37,7 @@ fn main() -> ort::Result<()> {
// convert to 8-bit
let output = output.mul(255.0).map(|x| *x as u8);
let output = output.into_raw_vec();
let (output, _) = output.into_raw_vec_and_offset();
// change rgb to rgba
let output_img = ImageBuffer::from_fn(512, 512, |x, y| {