Houdini and PyTorch

   314   4   3
User Avatar
Member
24 posts
Joined: Dec. 2016
Offline
Hey everyone!

I'm trying to experiment with PyTorch inside of Houdini and PDG however I've gotten stuck at the first step… I can't import torch or torchvision or any PyTorch packages; I get a “module not found” error. I am using the latest Python 3 version of Houdini on Windows, Python (version 3.7.4) and PyTorch (version 1.5) are installed correctly and work from the Windows command line. Any ideas would be greatly appreciated!

Thanks,
Ryan
User Avatar
Member
24 posts
Joined: Dec. 2016
Offline
In case anyone is wondering, you just have to copy the packages to your Houdini Python library.
User Avatar
Member
20 posts
Joined: Nov. 2019
Offline
Hey do you mind going into details ? I understand that I have to put the pytorch lib inside my houdini python folder but could be precise regarding where I can find the packaged lib and what should I put into /bin /include /lib and /share ?

Thanks.
User Avatar
Member
24 posts
Joined: Dec. 2016
Offline
For Windows:

Copy the folders/files from this folder: C:\Users\user\AppData\Local\Programs\Python\Python37\Lib\site-packages

To this folder: C:\Users\user\Documents\houdini18.0\scripts\python
User Avatar
Member
20 posts
Joined: Nov. 2019
Offline
Thanks ! I just got it to work by copying the files to /install/python/lib/python3.7/site-packages.

I will keep you posted if I get more success working with PDG but I might take a bit of time to get here.

Again thanks a lot.
  • Quick Links