Unable to benchmark pre-trained image model: freezing on import
See original GitHub issueHello, thanks for providing the code for your paper!
I have been unable to run either the benchmark_agent.py
code (with the pre-trained model-10.th
), or the data_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 https://github.com/pytorch/pytorch/issues/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:
Package | Version |
---|---|
cudatoolkit | 10.1.243 |
pytorch | py3.5_cuda10.1.243_cudnn7.6.3_0 |
cudnn | 7.6.5 |
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
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (2 by maintainers)
Top GitHub Comments
Great, I think I actually got the
benchmark_agent.py
example working now!I ended up commenting out all of the
torchvision
imports inside thebird_view
folder. This included replacing all of theToTensor
calls with the code that you mentioned. Additionally, I had to comment out instances oftorchvision.utils
inside thelogger.py
andsaver.py
files. I replaced the calls totv_utils.make_grid
in both of those files by just copying the source code from PyTorch (https://pytorch.org/docs/stable/_modules/torchvision/utils.html#make_grid).I assume I’ll have to do the same to the files inside the
training
folder since I see some references totorchvision
there as well.Thanks again for your help! Will let you know if I run into any other issues.
@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.