Giter Club home page Giter Club logo

mldeform's Issues

Vertices are moving in a wrong direction

Hi @dgovil,

I tried your Cylinder_setup scene in Maya 2022.
Just as you mentioned I wrote the data and trained it. I used Collab for training.
Then I loaded and created a deformer and set up the joints.
I am connecting joints in a similar way you are doing in test_deformer function
I can see the vertices are moved but they are moving in the wrong way.

Cylinder_Setup

I am attaching herewith the training input and output data that I am loading in the deformer.
Test1.zip

Kindly advise if this is expected? or what/if I have missed.

i have a question

maya python version is 2.7.11
but pandas need numpy 1.3 or above...
tensorflow need python 3.5 or above..
so, i can't use maya running ‘’from MLDeform import train ‘’
happen a error...
because maya can't import pandas and tensorflow

# ValueError: Empty training data. #

I got one joint to write out training data. If it's multiple joints than I get this error.

Train on 0 samples, validate on 1 samples
Epoch 1/200
# Error: Empty training data.
# Traceback (most recent call last):
#   File "<maya console>", line 3, in <module>
#   File "C:/Users/Edward Conry/Documents/maya/2022/scripts\MLDeform2\_training\train.py", line 179, in train
#     batch_size=batch_size)
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\tensorflow\python\keras\engine\training.py", line 780, in fit
#     steps_name='steps_per_epoch')
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\tensorflow\python\keras\engine\training_arrays.py", line 380, in model_iteration
#     aggregator.finalize()
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\tensorflow\python\keras\engine\training_utils.py", line 111, in finalize
#     raise ValueError('Empty training data.')
# ValueError: Empty training data. # 

How to add anaconda/tensorflow to Maya

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.