no kernel image is available error #848
-
When I tried to run using the following command line,
the following error saying "no kernel image is available" occurrd.
Please let me know how to fix it ! |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
it's probably an issue with your torch installation. Can you check the following questions?
|
Beta Was this translation helpful? Give feedback.
-
I answer the questions above. ・Yes. That's it. |
Beta Was this translation helpful? Give feedback.
-
Thanks, can you also tell me what the outputs of these are ? >>> import torch
>>> torch.__version__
>>> torch.cuda.is_available() For example, mine are as follows: >>> import torch
>>> torch.__version__
'1.12.0+cu102'
>>> torch.cuda.is_available()
True |
Beta Was this translation helpful? Give feedback.
-
My output is as follows:
|
Beta Was this translation helpful? Give feedback.
-
This is weird. Despite things are looking normal, I still think that it is related to your cuda and torch installation. What's the output of the following in your terminal? >>> import torch
>>> torch.rand((32, 3, 256, 256)).cuda() |
Beta Was this translation helpful? Give feedback.
-
The results of the above python command is as follwos:
|
Beta Was this translation helpful? Give feedback.
-
As I mentioned previously, there is a problem with your torch and cuda compatibility for your GPU card. Your have pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 I'll be converting this to a discussion since it is not an anomalib issue, but feel free to continue from the discussions. |
Beta Was this translation helpful? Give feedback.
As I mentioned previously, there is a problem with your torch and cuda compatibility for your GPU card. Your have
'1.12.0+cu102'
as the pytorch version. It is probably not compatible with your GPU architecture. If you install pytorch using the following, you could potentially fix your problem:I'll be converting this to a discussion since it is not an anomalib issue, but feel free to continue from the discussions.