png as default output
This commit is contained in:
parent
31d84c99d7
commit
3be68fcccf
1 changed files with 2 additions and 1 deletions
|
|
@ -163,7 +163,8 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
|
||||
let mask = session.predict(&img)?;
|
||||
let result_rgba = apply_mask(&img, &mask)?;
|
||||
let output_path = output_directory.join(path.file_name().unwrap());
|
||||
let mut output_path = output_directory.join(path.file_name().unwrap());
|
||||
output_path.set_extension("png");
|
||||
result_rgba.save(&output_path)?;
|
||||
processed += 1;
|
||||
info!(output = %output_path.display(), "Processed image saved");
|
||||
|
|
|
|||
Loading…
Reference in a new issue