Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] RuntimeError: [srcBuf length] > 0 INTERNAL ASSERT FAILED #3031

Open
2 tasks done
kensamare opened this issue Apr 30, 2024 · 0 comments
Open
2 tasks done

[Bug] RuntimeError: [srcBuf length] > 0 INTERNAL ASSERT FAILED #3031

kensamare opened this issue Apr 30, 2024 · 0 comments
Assignees

Comments

@kensamare
Copy link

kensamare commented Apr 30, 2024

Prerequisite

Environment

PyTorch = 2.1.2
openpose = 1.3.1
mmcv = 2.1.0
mmdet = 3.2.0
mmengine = 0.10.4

Reproduces the problem - code sample

from mmpose.apis import MMPoseInferencer
from mmpose.utils import register_all_modules

register_all_modules()

img_path = 'DSC_0079.MOV' 

inferencer = MMPoseInferencer('human')

result_generator = inferencer(img_path, show=True, device='cpu', pred_out_dir='predictions')
results = [result for result in result_generator]

The program code is run on the video recording and the following error is received. However, when using photos everything is fine.
Runs on Apple M1

  File "/opt/miniconda3/envs/openmmlab/lib/python3.8/site-packages/mmdet/models/utils/misc.py", line 338, in filter_scores_and_topk
    scores, idxs = scores.sort(descending=True)
RuntimeError: [srcBuf length] > 0 INTERNAL ASSERT FAILED at "/Users/runner/work/_temp/anaconda/conda-bld/pytorch_1702400154748/work/aten/src/ATen/native/mps/OperationUtils.mm":327, please report a bug to PyTorch. Placeholder tensor is empty!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants