Skip to content

Commit

Permalink
runnable version for full demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Benteng Ma committed Feb 23, 2024
1 parent af28931 commit b91b736
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def predict_frame(head_frame, torso_frame, full_frame, head_mask, torso_mask,):
head_frame = pad_image_to_even_dims(head_frame)
torso_frame = pad_image_to_even_dims(torso_frame)

rst = ImageOfPerson.from_parent_instance(p.predict(full_frame))
rst = ImageOfPerson.from_parent_instance(p.predict(head_frame))

return rst.describe()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ def describe(self) -> str:
wearables.append('a necktie')
description += ", ".join(wearables[:-2] + [" and ".join(wearables[-2:])]) + '. '

return description
return description if description != "This customer has " else ""
2 changes: 1 addition & 1 deletion skills/src/lasr_skills/describe_people.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,4 +297,4 @@ def execute(self, userdata):
userdata['people'] = people
# except Exception:
# return 'failed'
# return 'succeeded'
return 'succeeded'

0 comments on commit b91b736

Please sign in to comment.