CHONSPQX / modulated-deform-conv

deformable convolution 2D 3D DeformableConvolution DeformConv Modulated Pytorch CUDA
MIT License
133 stars 17 forks source link

test in Windows #9

Closed lilipopololo closed 2 years ago

lilipopololo commented 2 years ago

win10 cuda 11.3 and I install in conda environment(pytorch 1.10 cuda11.3 and pytorch1.81 cuda 11.2) I can install this project into my pc but when i use my_test.py ,it go wrong

line 28, in forward MDCONV_CUDA.deform_conv2d_forward_cuda(
AttributeError: module 'MDCONV_CUDA' has no attribute 'deform_conv2d_forward_cuda'
lilipopololo commented 2 years ago
>>> out=deform_conv2d(data,offset,weight,bias,stride,padding,dilation,groups,deformable_groups,in_step)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\conda\envs\pytorch1.10.0\lib\site-packages\modulated_deform_conv-1.0.2-py3.8-win-amd64.egg\modulated_deform_conv.py", line 28, in forward
    MDCONV_CUDA.deform_conv2d_forward_cuda(
AttributeError: module 'MDCONV_CUDA' has no attribute 'deform_conv2d_forward_cuda'
>>> out=modulated_deform_conv2d(data,offset,mask,weight,bias,stride,padding,dilation,groups,deformable_groups,in_step)
>>> print(out)
tensor([[[[4., 6., 6., 6., 4.],
          [6., 9., 9., 9., 6.],
          [6., 9., 9., 9., 6.],
          [6., 9., 9., 9., 6.],
          [4., 6., 6., 6., 4.]]]], device='cuda:0',
       grad_fn=<ModulatedDeformConv2dFunctionBackward>)