Skip to content

Commit

Permalink
fix strange openpose problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyasviel committed May 2, 2023
1 parent b264720 commit f715763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion annotator/openpose/body.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ class Keypoint(NamedTuple):


class BodyResult(NamedTuple):
keypoints: List[Keypoint | None]
keypoints: List
total_score: float
total_parts: int


class Body(object):
def __init__(self, model_path):
self.model = bodypose_model()
Expand Down
2 changes: 1 addition & 1 deletion scripts/controlnet_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version_flag = 'v1.1.127'
version_flag = 'v1.1.128'
print(f'ControlNet {version_flag}')
# A smart trick to know if user has updated as well as if user has restarted terminal.
# Note that in "controlnet.py" we do NOT use "importlib.reload" to reload this "controlnet_version.py"
Expand Down

2 comments on commit f715763

@huchenlei
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we revert this? The previous syntax is more precise.

@lllyasviel
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well ugly working scripts better than strange crash when the script is running on the user end

Please sign in to comment.