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

problem with MegadetectorV6 #533

Open
1 of 2 tasks
Ladanovasv opened this issue Sep 9, 2024 · 7 comments
Open
1 of 2 tasks

problem with MegadetectorV6 #533

Ladanovasv opened this issue Sep 9, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Ladanovasv
Copy link

Search before asking

  • I have searched the Pytorch-Wildlife issues and found no similar bug report.

Bug

Hi, Thanks for the code and model weights.

I try to use MegadetectorV6 and I have a problem
LooseVersion = distutils.version.LooseVersion
AttributeError: module 'distutils' has no attribute 'version'

How can I fix it?

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@Ladanovasv Ladanovasv added the bug Something isn't working label Sep 9, 2024
@zhmiao
Copy link
Collaborator

zhmiao commented Sep 10, 2024

Hello @Ladanovasv , thanks for reporting! This is something we have never seen before. Did you pip install . -e?

@Ladanovasv
Copy link
Author

Hello @zhmiao, yes, I did

@zhmiao
Copy link
Collaborator

zhmiao commented Sep 11, 2024

Hello @Ladanovasv, it might be caused my setuptool versions according to these issues: Lightning-AI/pytorch-lightning#12324 and pytorch/pytorch#69894 . Could you try pip install setuptools==59.5.0 and see if that works?

@Ladanovasv
Copy link
Author

Hello @zhmiao It is fixed first problem, but I have a new problem.
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

@zhmiao
Copy link
Collaborator

zhmiao commented Sep 18, 2024

Hello @zhmiao It is fixed first problem, but I have a new problem. RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

Hello @zhmiao It is fixed first problem, but I have a new problem. RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

This might be related to your cuda version. Do you know what cuda version are you using?

@Ladanovasv
Copy link
Author

Ladanovasv commented Sep 23, 2024

Hello @zhmiao, I am using cuda 12.3

@zhmiao
Copy link
Collaborator

zhmiao commented Sep 23, 2024

Hello @zhmiao, I am using cuda 12.3

Do you have problem importing pytorch independently? I did some search and it might be an issue related the compatibility of pytorch and cuda. I assume you are using the pip install -r requirement.txt to install the packages right? That might be the issue because pip install cuda 12.1 version of pytorch by default. Could you try a clean environment and pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124, and see if it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants