Skip to content

Commit

Permalink
modify to use model_id from key
Browse files Browse the repository at this point in the history
  • Loading branch information
sidhulyalkar committed Dec 14, 2023
1 parent bf227e2 commit 8aca21c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions element_facemap/facemap_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,9 @@ def make(self, key):

bbox = (FacemapPoseEstimationTask & key).fetch1("bbox") or []

# Model Name of interest should be specified by user during facemap task params manual update
model_id = (FacemapPoseEstimationTask & key).fetch("model_id")

# Fetch model(.pt) file attachment to present working directory
facemap_model_name = (FacemapModel.File & f'model_id="{model_id}"').fetch1(
"model_file"
)
facemap_model_name = (
FacemapModel.File & f'model_id="{key["model_id"]}"'
).fetch1("model_file")

facemap_model_path = Path.cwd() / facemap_model_name
models_root_dir = model_loader.get_models_dir()
Expand Down

0 comments on commit 8aca21c

Please sign in to comment.