Can I import tensorflow and keras in Maya , Blender

▼魔方 西西 提交于 2021-01-28 18:52:06

问题


I am participating in a workshop , where we need to automatically rig characters . Perhaps , we will use deep learning methods . The task is to recognize body parts . My question : Is there a way for connecting tensorflow and keras , or other neural networks with 3D software?


回答1:


For blender you can follow this tutorial,

https://www.youtube.com/watch?v=J7Iu1rfwbds

I tested it in Blender 2.81 and Python 3.7 by importing pytorch, opencv, sklearn etc. Also the test code provided in the video works correctly. You do not need follow the pandas installation and git cloning shown on the tutorial. Let it install with other bigger packages or install with conda.

Conda environment creation, https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html.

conda create -n MyNamedEnv python=3.7

After environment is created install your required packages. If you have multiple environments its usually in Anaconda3/envs folder. Command to make link,

mklink /j python C:\Users\computer\Anaconda3\envs\MyNamedEnv

To test if it is working go to scripting tab in blender 2.81 delete everything. A to select all and del button to delete. Paste code from below to Text Editor and run script.

https://github.com/virtualdvid/MachineLearning/blob/master/blender/iris_blender.py

Tensorflow and keras should work similarly by installing them in the conda environment and calling them from blender.



来源:https://stackoverflow.com/questions/60529676/can-i-import-tensorflow-and-keras-in-maya-blender

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!