-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cuda not working in docker container #2
Comments
Solved. Now I have SB3 bug which I'll solve myself. Sorry for the actions mess, new to Docker. |
Nice to read. 😃 |
It seems your Dockerfile could be made faster by building it |
Thanks for the tip, for now it is cached but when I change my Dockerfiile (which I will because I'm installing different versions of SB3 and SB3-contriib in the container than my system) I will change the image too. I became a little crazy trying to get it to work but at the end I was just missing these sentences:
Thanks! |
If you don't mind we will add this to the main Webots Dockerfile, so that you won't have to bother any more about this problem in the future. See my PR here. |
Of course, go ahead! |
Hi @omichel, I am trying to load a model composed by a CNN->LSTM->Policy trained using PPO. However, even If I set the parameter device=th.device('cpu'), it is not working as it seems that the feature extractor (cnn) constructor is ignoring this parameter in the SB3 implementation. I tried to install cuda in the container by installing pytorch which installs cuda as a dependency. Any tips on how I can configure the dockerfile so that the container succesfully configure cuda for this purpose if this is possible would be very appretiated. I will try to debug the issue meanwhile. Thanks.
The text was updated successfully, but these errors were encountered: