Skip to content

Commit

Permalink
Merge pull request #940 from dfinity/ulan/fix-comment
Browse files Browse the repository at this point in the history
Fix a stale comment in the face recognition example
  • Loading branch information
dfinity-berestovskyy authored Jul 15, 2024
2 parents 08ea0b2 + 41e5703 commit 1a6d4ff
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 1a6d4ff

Please sign in to comment.