-
Notifications
You must be signed in to change notification settings - Fork 102
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
Unable to benchmark pre-trained image model: freezing on import #7
Comments
Hey @rohanb2018 , Downgrading my dependencies to the following versions fixed the problem while I was testing it out. cudatoolkit 10.0.130 Hope this helps |
Thanks for your interest in our project! If |
Thanks for the response, guys! @raks097: Thanks for the suggestion, unfortunately when trying to conda install the suggested PyTorch version you suggested, I ran into a conda UnsatisfiableError with a long list of incompatible specifications. It's weird because all of the dependencies (and their compatible versions) for that version of PyTorch seem to be present in the environment, but conda still complains. @dianchen96: Sure! The only console output I get from running either the agent benchmark script or the data collector script is just the pygame message:
In both cases I have to kill the running Python process because it doesn't respond to the usual keyboard interrupt. I did confirm that I have your CARLA I'll try playing around with the import order and see if that helps. |
could be related to carla-simulator/carla#2132 |
Yeah this might be it! I tried |
one way I got around this previously was just to remove the torchvision import,
which converts a numpy uint8 to a FloatTensor (taken from https://pytorch.org/docs/stable/_modules/torchvision/transforms/functional.html#to_tensor) |
Great, I think I actually got the I ended up commenting out all of the I assume I'll have to do the same to the files inside the Thanks again for your help! Will let you know if I run into any other issues. |
note - another easier way to get around this is to just find the first instance of
and simply add many libraries have this problem due to the way pytorch is compiled, |
Hi @bradyz , thanks for sharing the code! When I tried to run Besides, according to carla-simulator/carla#2132 (comment), this issue might have been fixed with CARLA 0.9.9. Is the latest version by any chance a viable option? I am testing the latest version (031308). Update:
|
At the very very top of benchmark_agent can you try import torch |
@peiyunh start_dtcrowd/stop_dtcrowd only come with our custom CARLA 0.9.6 egg for the pedestrian fix. If you would like to use this repo with CARLA 0.9.9 you need to modify some of the utilities code. |
Thanks for the replies @bradyz @dianchen96 !
This works! I am able to run benchmark_agent now. Thanks a lot! |
Hi, I met the same problem. How did you fix it? I add |
From all the quotes here, this was the best one |
Hello, thanks for providing the code for your paper!
I have been unable to run either the
benchmark_agent.py
code (with the pre-trainedmodel-10.th
), or thedata_collector.py
script. Both scripts seem to be freezing at some point in the import process, which I haven't been able to resolve. They don't throw errors (or print anything besides the pygame message) but seem to hang indefinitely.I had to make a couple of modifications to the installed dependencies, because it seems that the RTX GPU family is not compatible with CUDA 9.0 or below (or with any packages that are built with CUDA 9.0 or below), as per pytorch/pytorch#17543, and because I ran into CUDA warnings and CUDNN errors when using the original dependencies (that were built with CUDA 8.0)
The relevant versions of dependencies on my system are as follows:
If anyone has guidance on how to debug/resolve this issue, I'd really appreciate it. Thanks so much!
My set-up:
GPU: GeForce RTX 2080 with Max-Q
CUDA version: 10.1
The text was updated successfully, but these errors were encountered: