Skip to content

Commit

Permalink
Fix face landmark model URL and adjust model resource check
Browse files Browse the repository at this point in the history
Signed-off-by: vinlemon <[email protected]>
  • Loading branch information
vinlemon committed Jul 17, 2024
1 parent 06464f4 commit fd37177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/download-models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ face_landmark_init() {
mkdir -p "${face_landmark_dir}"
pushd "${face_landmark_dir}"

model_urls=("https://storage.googleapis.com/mediapipe-assets/face_landmark.tflite"
model_urls=("https://storage.googleapis.com/mediapipe-tasks/face_landmarker/face_landmarker.task"
)

for url in "${model_urls[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/vision/face_landmark/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl FaceLandmarkerBuilder {
let model_resource = crate::model::parse_model(landmark_file.as_ref())?;

// check model
model_base_check_impl!(model_resource, 1, 3);
model_base_check_impl!(model_resource, 1, 2);
model_resource_check_and_get_impl!(model_resource, to_tensor_info, 0).try_to_image()?;
let input_tensor_type =
model_resource_check_and_get_impl!(model_resource, input_tensor_type, 0);
Expand Down

0 comments on commit fd37177

Please sign in to comment.