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

Doesn't render trained networks when CUDA is not available #11

Open
aovladi opened this issue Jul 23, 2019 · 1 comment
Open

Doesn't render trained networks when CUDA is not available #11

aovladi opened this issue Jul 23, 2019 · 1 comment

Comments

@aovladi
Copy link

aovladi commented Jul 23, 2019

I think this may be helpful if someone can't use CUDA like me.

I have pytorch-cpu and torchvision-cpu. Everything was working until I tried to render the trained networks. Python gave an error: "Error in Python: <class 'AssertionError'>: Torch not compiled with CUDA enabled".

I fixed it by removing ".cuda()" in Window.cpp line 69:
p::eval("MuscleNN(num_total_muscle_related_dofs,num_actions,num_muscles).cuda()",mns);

now I have:
p::eval("MuscleNN(num_total_muscle_related_dofs,num_actions,num_muscles)",mns);

@lsw9021 lsw9021 mentioned this issue Aug 9, 2019
@lsw9021
Copy link
Owner

lsw9021 commented Aug 9, 2019

Thank you!

We will update the code as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants