-
Notifications
You must be signed in to change notification settings - Fork 191
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
Running RigNet in python3.9 and get Aborted #76
Comments
Now, I have to downgrade the python used in cuda environment from python 3.9.12 to python3.7.15 to be compatible with Rignet code that use python3.7 with the following modification to allow installation of pytorch package wheels compatible with pytorch1.6 without causing the installation errors. pip install torch-scatter==2.0.6 -f https://data.pyg.org/whl/torch-1.6.0+cu101.html This installation works well when I ran the command to generate dataset (python3 gen_dataset.py). However, when I ran the code for quick start, I got a trouble with torch-geometric since the latest version of torch-geometric library (torch-geometric2.2) keeps asking for torch.profiler which is not available in pytorch 1.6 but available in pytorch1.8.1 or later. |
Hi, I tried more recent versionS of pytorch and torch-geometric in my new project https://github.com/zhan-xu/MoRig/blob/master/environment.yml. Would you like to take a look? |
Going to try once I have tried every measure though. |
I have tried to install MoRig through conda environment but there must be some issues that caused the Docker container to be crashed that require reinstallation of Docker as well as ubuntu, python3.7 and conda. I has better apply manual installation steps by steps rather than using command "conda env create -f environment.yml" |
Now, when I test the example "fbx_parser.py", I have found that this example need the Autodesk Maya API1.0 in python3. |
I have used this script in Maya 2018. I have also used Maya 2020, 2022 recently with functions in there, and I didn't have problem. Are you using Jupiter Notebook? I used the script editor within Maya. |
BTW, I just wonder how did you run your code with the use of python library of Maya 2018 and later version in Windows or in Linux (Ubuntu). If it is in Linux (Ubuntu), I just wonder how did you do this kind of thing since I'm trying to run your code in Docker that use Ubuntu in the container. |
I've been using Maya in Windows. I assume you mean numpy and scipy? you can check https://forums.autodesk.com/t5/maya-programming/guide-how-to-install-numpy-scipy-in-maya-windows-64-bit/td-p/5796722 basically you can install any library using the pip from mayapy. |
Well, after I have counterchecked into your python wheel and 7z files along with the application of command "mayapy -m pip list", I got the list of necessary library files as follows:
|
BTW, I have already followed the instruction to install Python packages shown in mayapy before setting up File path variables for Maya, Initializing the Maya Environment in and for Python along with Setting environment variables using Maya.env as the way to set path to access into Maya API 1.0. However, I still get the following error when I run the command python fbx_parser.py, and still getting the folowing error:
Did I do something wrong with my environment variable setting? What is your way to set up environment variables so python.exe in C:\Users[user_name].conda\envs\rignet could manage to access Maya API in C:\Program Files\Autodesk\Maya2022\Python37\Lib\site-packages without troubles. |
I see the problem. For fbx_parser.py, I was using mayapy, which is python shipped within maya, not the one in conda env. |
I have tried to install RigNet to be used in python3.9 through the installation process:
pip install numpy scipy matplotlib tensorboard open3d opencv-python
pip install rtree
pip install trimesh[easy]
conda install pytorch==1.12.0 torchvision cudatoolkit -c pytorch
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.12.0+$cu.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.12.0+$cu.html
pip install torch-cluster -f https://data.pyg.org/whl/torch-1.12.0+$cu.html
pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.12.0+$cu.html
pip install torch-geometric
conda create --name rignet_cuda11 python=3.9
conda activate rignet_cuda11
To test that everything works, from the anaconda console go into RigNet-master folder and run:
python quick_start.py
However, I got Aborted result as shown here:
Is there any solution for this problem?
BTW, I still unable to access to get testing and training data from this website for training though.
The text was updated successfully, but these errors were encountered: