Open tshrjn opened 1 year ago
ā” Sweep Free Trial: I used GPT-4 to create this ticket. You have 5 GPT-4 tickets left. For more GPT-4 tickets, visit our payment portal.
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
From looking through the relevant snippets, I decided to make the following modifications:
File Path | Proposed Changes |
---|---|
utils/InverseKinematics.py |
Investigate the assertion on line 105. If it's found to be too strict or unnecessary, modify or remove it. If the assertion is necessary, adjust the input data or the method provided by the user to satisfy the assertion. |
I have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request:
Fix assertion error in InverseKinematics.py
sweep/fix-assertion-error
Description
This PR fixes an assertion error that occurs when converting SMPL outputs to BVH format in the
InverseKinematics.py
file. The user reported the error and suggested commenting out the assertion on line 105 as a workaround. After investigating the assertion, it was found to be unnecessary for the correct functioning of the code. Therefore, the assertion has been removed in this PR.Summary of Changes
- Removed the assertion on line 105 in
InverseKinematics.py
.- Updated the code to handle the conversion of SMPL outputs to BVH format without the unnecessary assertion.
Please review and merge this PR to resolve the assertion error and improve the conversion process.
I have finished coding the issue. I am now reviewing it for completeness.
Success! š
I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind! Join Our Discord
To have BitBuilder create a Pull Request with the implementation, the user who created the issue (@tshrjn) can comment below with "LGTM". If the plan is inaccurate, edit the issue description and write a comment with "replan".
assert no.allclose...
). This assertion is not needed as the code in the method is already debugged and sometimes the threshold when using np.allclose should be smaller than the default.Generated with :heart: by www.bitbuilder.ai. Questions? Check out our the documentation.
Here is how to convert smpl to bvh:
The code above is correct when using the Humanact12 and the UESTC datasets. If you are using the HumanML3D dataset, you need to drop the last two items from the parents and from the SMPL_JOINT_NAMES arrays.
In step2, "the npy file"refer to "results.npy" which is created by sample/generate.py? used the "results.npy" and extract the 'motion' as a new npy,
Also, Please comment out line 105 in D:\text-to-motion-main\motion-diffusion-model\Motion\InverseKinematics.py ("assert no.allclose...") and run .
[Explanation: Sometimes the threshold when using np.allclose should be smaller than the default. Since the code in that method is already debugged, there is no need for this assertion.]
An error of 0.008 is actually very good.