Skip to content

Commit

Permalink
fix creation of Body with pose=None (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed May 30, 2024
1 parent f1fce5e commit da0d3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtmlib/tools/solution/body.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self,
backend: str = 'onnxruntime',
device: str = 'cpu'):

if 'rtmo' in pose:
if pose is not None and 'rtmo' in pose:
from .. import RTMO

self.one_stage = True
Expand Down

0 comments on commit da0d3c3

Please sign in to comment.