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

batch % im2col_step_ == 0 INTERNAL ASSERT FAILED #224

Open
bio-mlhui opened this issue Feb 14, 2024 · 0 comments
Open

batch % im2col_step_ == 0 INTERNAL ASSERT FAILED #224

bio-mlhui opened this issue Feb 14, 2024 · 0 comments

Comments

@bio-mlhui
Copy link

bio-mlhui commented Feb 14, 2024

A video of 154 frames (batch_size=1, t=154) is flattend(bt=154, c=64, hw_sum=(11^2+22^2+44^2)) and input to Deformable Attention, but I encounted batch % im2col_step_ == 0 INTERNAL ASSERT FAILED at "/home/xuhuihui/workspace/Deformable-DETR/models/ops/src/cuda/ms_deform_attn_cuda.cu":52, please report a bug to PyTorch. batch(%d) must divide im2col_step(%d)15464.

In ms_deform_attn_cuda.cu, one line is const int im2col_step_ = std::min(batch, im2col_step);. Should I increase im2col_step to bigger than 154, like 256?

when i set imcol_step to 256, and no error encounted.

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

1 participant