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

RuntimeError: image.is_contiguous()INTERNAL ASSERT FAILED at ".\\RoIAlign\\roi_align\\src\\crop_and_resize_gpu.cpp":27, please report a bug to PyTorch. image must be contiguous #53

Open
Kev1n3zz opened this issue Jun 8, 2022 · 0 comments

Comments

@Kev1n3zz
Copy link

Kev1n3zz commented Jun 8, 2022

Hellow ,thanks for your work.
I reload this work in pytorch1.11.0 and foud a RuntimeError

The error log follows:

Traceback (most recent call last):
  File "c:/Users/29006/Desktop/GAR/scripts/train_volleyball_stage1.py", line 21, in <module>
    train_net(cfg)
  File ".\train_net.py", line 110, in train_net
    return forward_call(*input, **kwargs)
  File ".\base_model.py", line 117, in forward
    boxes_idx_flat)  #B*T*N, D, K, K,
  File "D:\Anaconda\envs\GCN\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "D:\Anaconda\envs\GCN\lib\site-packages\roi_align-0.0.2-py3.7-win-amd64.egg\roi_align\roi_align.py", line 48, in forward
    return CropAndResizeFunction.apply(featuremap, boxes, box_ind, self.crop_height, self.crop_width, self.extrapolation_value)
  File "D:\Anaconda\envs\GCN\lib\site-packages\roi_align-0.0.2-py3.7-win-amd64.egg\roi_align\crop_and_resize.py", line 25, in forward        
    ctx.extrapolation_value, ctx.crop_height, ctx.crop_width, crops)
RuntimeError: image.is_contiguous()INTERNAL ASSERT FAILED at "C:\\Users\\29006\\Desktop\\RoIAlign\\roi_align\\src\\crop_and_resize_gpu.cpp":27, please report a bug to PyTorch. image must be contiguous

So, does any one can solve this?

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