Skip to content

Commit

Permalink
Fix a stale comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ulan committed Jul 15, 2024
1 parent 08ea0b2 commit 41e5703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/face-recognition/src/backend/src/onnx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn embedding(image: Vec<u8>) -> Result<Embedding, anyhow::Error> {
let model = model.as_ref().unwrap();
let image = image::load_from_memory(&image)?.to_rgb8();

// The model accepts an image of size 140x140px.
// The model accepts an image of size 160x160px.
let image =
image::imageops::resize(&image, 160, 160, ::image::imageops::FilterType::Triangle);

Expand Down

0 comments on commit 41e5703

Please sign in to comment.