shikiw / SI-Adv

[CVPR 2022] Shape-invariant Adversarial Point Clouds
MIT License
39 stars 9 forks source link

RuntimeError: CUDA error: no kernel image is available for execution on the device #3

Closed memory009 closed 1 year ago

memory009 commented 1 year ago

Hello, I have completed the construction of the conda environment according to the environment.yml you gave, but when I use "python main.py --transfer_attack_method ifgm_ours" to train, the error "RuntimeError: CUDA error: no kernel image is available for execution on the device", how do I solve this problem? (Is my pytorch version too high?)

shikiw commented 1 year ago

Yes, I guess it is probably because your pytorch version is too high/low, which conflicts with your gpu device.

memory009 commented 1 year ago

Thank you for your answer, as you said, my pytorch version is too low. when I use "conda uninstall torch cudatoolkit" to uninstall the original pytorch, then "pip3 install torch==1.10.2+cu113 torchvision== 0.11.3+cu113 torchaudio==0.10.2+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html " The problem is solved after changing to the new pytorch version