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

How to add anaconda/tensorflow to Maya #2

Closed
syedharoonalam opened this issue Jun 24, 2021 · 3 comments
Closed

How to add anaconda/tensorflow to Maya #2

syedharoonalam opened this issue Jun 24, 2021 · 3 comments

Comments

@syedharoonalam
Copy link

Hi Dhruv, I am trying to run your repo but kind of stuck at bringing TensorFlow to Maya.

I first tried to install TensorFlow using mayapy, but using that I was getting attached error
Untitled
It complains when imp.load_module('_pywrap_tensorflow_internal' but _pywrap_tensorflow_internal is present.

Anyway, I followed your advice and install tf2 using anaconda, but now I am not sure how to add anaconda library path to Maya library paths. I am guessing it should be conda/pkgs that I need to reference in Maya, but not sure where. Kindly advice.

OS: Linux/CentOS7
Maya Version: 2020

@syedharoonalam
Copy link
Author

Hi @dgovil I tried adding PYTHONPATH+=/home/haroon/miniconda2/lib in Maya.env but Maya didn't pick TensorFlow library, I also added init.py in my google folder which is at /home/haroon/.local/lib/python2.7/site-packages/google
Please advise.

@dgovil
Copy link
Owner

dgovil commented Jun 25, 2021

As far as I know, Tensorflow has dropped support for Python 2, which makes it incompatible with Maya 2020. The existing python-2 versions may also have other incompatibilities with Maya.

This may work in Maya 2022 when using the Python 3 version but unfortunately I haven't tried it yet since this code base hasn't worked in a while due to the differences in Maya Python support and Tensorflow.

@syedharoonalam
Copy link
Author

Thanks @dgovil for the suggestion, I switched to Maya 2022, and TensorFlow installed and loaded seamlessly in Maya.
I have also tested your deformer in 2022 with my (Collab) trained model and it loaded without any errors.
I will explore it further with different poses and let you know in case of any questions.

I am closing this issue for now. Thanks again!

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