Skip to content

Commit

Permalink
[Fix] Fix bug in mmaction2 pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mareksubocz authored Jun 29, 2023
1 parent 1ab662a commit fe4dec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmpose/apis/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def inference_topdown(model: nn.Module,
init_default_scope(scope)
pipeline = Compose(model.cfg.test_dataloader.dataset.pipeline)

if bboxes is None:
if bboxes is None or len(bboxes) == 0:
# get bbox from the image size
if isinstance(img, str):
w, h = Image.open(img).size
Expand Down

0 comments on commit fe4dec7

Please sign in to comment.