-
Notifications
You must be signed in to change notification settings - Fork 29
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
Import in blender #10
Comments
Just created the issue to share the code |
Hello, mocap in blender, there is no position to move,Standing still, how to solve this problem, thank you |
Hello @bboyalong01 , can you explain it more? I couldnt understand the problem. If you have a video showing the problem, it would be even better |
918_3_incam_global_horiz.mp4blender_ex.mp4Hello, here are 2 videos, one of which is rendered by blender, and the 3D coordinates of Pellvis in blender have not changed @carlosedubarreto |
Hello @bboyalong01, I dont know what to suggest to you. You can view my tests here |
Okay, thank you very much |
Wow, thanks so much for your work @carlosedubarreto , I've been struggling about this for few days! This issue should rather be kept open for others who are looking for a solution. |
Hi @carlosedubarreto , there is a pyramid in the origin of coordinate after running the script, do you know what's happening here? Here is my pkl file if you would like to have a try: |
|
Hello @kexul, thats the bone of the character, if i remember correctly, its the root bone. You can hide in many ways, like, click on tye eye in the outline (top right corner) fir the object called armature, and it might be hidden. It is needed for you to retarget the animation to another character, you need all the pyramids (bones) for that If you render the result tye bones wont be seen too. If you look at my examples, posted in a answer above, youll see that some of my videis there us tye pyramid and ithers don't. Dont worry about that. |
@bboyalong01 I think i can imagine what is happening. Did you reolace tye I guess that if instead you added the commands inside ut manually, something might be wrong and it is not getting the tranlation data correctly. But its a hard guess, because, i imagine that if you did it wrong, the script would not work. But to be sure, try tonreplace the demo filenwithbthe one ibsent on this issue. Thats my best guess |
Thanks for your detailed reply! It's good to know. |
Oh sorry for that, and sadly my internet provider is out so I cant send all the the videos here, but I'll try to send one. blender_ljpIn59BGM.mp4 |
Thank you! |
I used the demo.py file you provided, and later I used the PKL file you provided to test, and now I'm not next to the computer, see if it can run normally, with moving data, I can see the video, for example, just this walking video, I tested it at the origin of the standing still, no movement @carlosedubarreto |
Oh man, sorry for that. |
python tools/demo/demo.py --video=docs/example_video/tennis.mp4 -s, I used this command, and you are also using this command, right? I'll go back tonight and test again to find out why. @carlosedubarreto |
@bboyalong01, yeah that's the one I'm using. |
Okay, thank you very much |
Hello, found the reason, FBX model I downloaded into unity, it should be Maya, made a low-level mistake, really thanks, by the way, asking, can this generate smplx model driver, this has a finger bone |
@bboyalong01 thanks for the info, indidnt even know that the unity one would work at all. About the smplx, i think it cant generat the finger stuff |
Hi @carlosedubarreto , I find that the palm is slightly different between the rendered video and imported in blender? The one in the video is a natural rest pose and the one imported is fully stretched. Is there any quick fix? Thanks! |
|
Hello @kexul About the hand difference between the video and the ine imported in blender. I think that the video rendered by the script uses SMPLX, while the data loaded in blender uses SMPL. Actually this shouldn't make much difference, since GVHMR doesnt seems to get the finger tracking. My suggestion would be to get the animation in blender and retarget to anithe character that has the finger bones (since smpl doesn't) and animate the fingers the way you want. Ibthink its better this way also because the bones of SMPL and SMPLX characters are a pain to manually tweak, because the bone orientation is awkward. Tgere is a way to import it in blender in a way that the bones looks better, but doing that the import if the motion from GVHMR doesn't work correctly. So thats why i suggest the retarget anyway. |
Thank your! ❤️ ❤️ ❤️ |
Make sure you dowload the SMPL 1.0.2 version which is the maya body model. |
Hello @haruhix You dont have to install the VENV part to run the retargeting tool, just install the addon, you can get it here https://github.com/carlosedubarreto/CEB_4d_Humans/releases/tag/1.12 in this simple video I show how to retarget to a a mixamo rig using the addon |
@carlosedubarreto Excuse me, Master carlosedubarreto.How to train custom videos and export them in pkl format, because I get an error saying there's no pytorch3d when running gvhmr on my Windows 11. I've been trying to install pytorch3d for several days and still can't get it installed |
Hello @fxgame0003 , lol, I'm not master About pytorch3d, you can try these instructions below. Just make sure you have your Oh, make sure you installed CUDA 12.1, and add the Also make sure that after installing the cuda 12.1 you have the CUDA_PATH to the 12.1 version, probably like this in any case to be sure that everything works, after installing cuda 12.1 restart you pc, its a good thing to do (not essential, but I think its easier doing this) install these
I think you dont need to load the VS Native command tools but in case you need to, it must be loaded after you activate the econ venv (with the previous packages already installed)
before you press enter it will looks something like this and after pressing enter, it might look like this then get the pytorch3d package using
enter pytorch3d folder Probably you will receive this error You just have to put this command: and run again It will take A LOT OF TIME to finish and it will show something like this |
Hello everyone, I am a novice and want to use my own video, apply code to generate actions, and import them into Blender. Can you share the whole process with me? Thank you |
@SoCool668 , you can find more info on another issue, like this one We've been talking a lot on CEB Studios Discord channel about the installation, but I think the main part you can get on this issue I showed above Massimina did a great job compiling the steps. |
@carlosedubarreto I installed CUDA v2.1, set the environment variable location, and set DLSTUTILS_USE_SDK=1, but it still reported an error. I'm a beginner and don't know much. Although I couldn't install it successfully, I still appreciate your response. |
@fxgame0003 wow, you did it very well. did you also installed the sadly the compiling errors are terrible to troubleshoot. but I know that when you have all the necessary things it works. take a look on this stackoverflow answer, I remember it helped me a lot making it work I also noticed that you installed visual studio 2022, while I was able to install using visual studio 2019. |
@carlosedubarreto I spent a lot of time and finally completed the installation of PyTorch3D. The issue was indeed as you mentioned—it was caused by Visual Studio 2022. I had to use Visual Studio 2019. Since I couldn't download Visual Studio 2019 from the official website, I had to find a way to download a large package, which was several tens of gigabytes, for local installation. My internet connection is unstable and frequently disconnects, but I eventually managed to install PyTorch3D. However, now I'm encountering another error when running GVHMR, and I'm not sure what the cause is. |
#22 fix ,crsiper #22 for the suggested fix, which resolved the issue, but now a new problem has arisen.屏幕截图 2024-10-04 190241 |
@fxgame0003 There is a parson called Mana Light that was having this same Extractor problem and he/she wrote some steps that might help you https://discord.com/channels/992698789569773609/992698790412812349/1287445600345788479 And sorry, he/she said also that was not able to install using vs2022. And I would not suggest to do the fix crisper suggested, becaue as far as I know Mana light didnt it, and it worked for him/her if you can get into the discord, because there was a huge discussion about the installation of GVHMR there and many people, even with the problems, were albe to install and use it. BTW, to get in the discord, use this link |
@carlosedubarreto My GVHMR on the computer is still showing some errors, but it's usable. I also installed PyTorch3D using VS2019. Unfortunately, my network doesn't allow Discord. Thank you so much for your multiple responses. You are a very kind and responsible person, and your answers have been very helpful to me. I truly appreciate it. |
@fxgame0003 my pleasure. I'm happy that you were able to make it work in some way, that is what matters 🦾🎉 |
Thank you for making the whole thing work for Blender! Do you think it's possible to somehow extract the camera coordinates from the inference script? Such that the camera movement can be recreated in Blender? I haven't had a detailed look at the script, so I thought I'd first ask you before even trying to accomplish something like that. |
Hello @philgatt , I do believe its possible, but I think for that you'll need the DPVO part (i didnt install it). So I'm actually not ble to help much on this camera matter, sorry. |
@carlosedubarreto Thank you, I'm gonna look into it! |
@carlosedubarreto Just a quick follow up on this: |
@philgatt , I was able to install DPVO when trying WHAM. The sad part is that some of the instructions are in portuguese (my native language) I'm in a rush now and was not able to translate them, but hopefully they'll make sense. Having more time left I can translate it to you BTW, important note, those instructions were for WHAM, so you'll have to adapt the versions of CUDA and python packages accordingly Install DPVOcd third-party/DPVO cd third-party/DPVO Colocar o eigen-3.4.0 na pasta thirdparty conda install pytorch-scatter=2.0.9 -c rusty1s Rodar a linha de baixo se nao tiver rodado a instalação do pytorch, por que no pytorch ja foi feito isso
Apos instalar DPVO
tentar essa solução troquei nos aquivos: no |
Thank you for your answer. Is there the URL of the CEB Studios Discord channel you mentioned? I will go there to learn more. Thank you. |
@SoCool668 sure, the link for the discord is: https://discord.gg/BRuu43Nv2J |
Hello. I was trying to make it work in blender and I was able to do it.
Wanted to share the code with you all.
To make it work I had to add these lines of code in the
demo.py
file that is in thetools\demo
folderor unzip the file below and replace it.
demo.zip
I had to create these lines so I could open the file in blender without problems, or else I would have to install pytorch in it which would be a huge problem.
And to load in blender, you can use this blend file (you'll have to unzip it to get the blend file)
import_anim_GVHMR_b4.2_v2.blend.zip
And to make it work you have to have the SMPL fbx file, that you can download form the SMPL site (its the SMPL_maya.zip file to download)
set the path for the SMPL FBX file, and the GVHMR result.pkl, like you can see in the example below
Run the script and you might have the result.
Have fun
PS.: this blend file was made in blender 4.2
The text was updated successfully, but these errors were encountered: