pku-epic / unidexgrasp Goto Github PK
View Code? Open in Web Editor NEWOfficial code for "UniDexGrasp: Universal Robotic Dexterous Grasping via Learning Diverse Proposal Generation and Goal-Conditioned Policy" (CVPR 2023)
Official code for "UniDexGrasp: Universal Robotic Dexterous Grasping via Learning Diverse Proposal Generation and Goal-Conditioned Policy" (CVPR 2023)
Hello, thank you very much for open-sourcing this excellent framework and providing a large-scale dataset. While studying, I encountered an error message: ImportError: cannot import name 'get_one_shape' from 'algo.pn_utils.maniskill_learn.utils.data'. I've implemented some functions myself, but I'm unsure about how to implement certain functions. It seems that I might be missing some utility files. In order to ensure that the training process is not affected, would it be possible to provide those missing files? Thank you."
Hi, when I try to run the eval code using the checkpoints you provided, there are parameters that have mismach size. I was trying to figure out it by myself but none of my attempts worked... Could you please provide a little help ? Thanks a lot!
Here is the output for ipdf model:
RuntimeError: Error(s) in loading state_dict for IPDFModel:
size mismatch for net.implicit_model.feat_mlp.weight: copying a param with shape torch.Size([256, 64]) from checkpoint,
the shape in current model is torch.Size([256, 128]).
Thank you for your excellent work! Can you provide the code for the Dataset Generation?
I can't download the data linked to https://mirrors.pku.edu.cn/dl-release/UniDexGrasp_CVPR2023/DFCData/ in grasp generation
Hi,
I'm confused about some codes in "dexgrasp_generation/datasets/dex_dataset.py" and I hope to get some explanations.
First, in line 125, this appears to be a 1x4 vector. What does it correspond to?
plane = recorded_data["plane"]
Second, in line 152-157, pcs_table and pose_matrices appear to be 100x400x3 and 100x4x4 vectors. What 100 means?
obj_pc_path = pjoin(self.root_path, "DFCData", "mesh", category, instance_no, "pcs_table.npy") pose_path = pjoin(self.root_path, "DFCData", "mesh", category, instance_no, "poses.npy") pcs_table = torch.tensor(np.load(obj_pc_path, allow_pickle=True), dtype=torch.float) pose_matrices = torch.tensor(np.load(pose_path, allow_pickle=True), dtype=torch.float)
Third, in line 132, this seems to use the distance between two vectors to retrieve an index from the object's pose, in order to select an object pose for grasping. What is the reason for doing this?
index = (torch.tensor(plane[:3], dtype=torch.float) - pose_matrices[:, 2, :3]).norm(dim=1).argmin()
Finally, there are 100 object poses and about 200 grasp poses in the datasets, I am confused about the code that establishes their correspondence.
Best wishes.
代码是不是还没放全呀,小小催更꒰ᐢ⸝⸝•༝•⸝⸝ᐢ꒱
Hi, thank you for sharing such a great piece of work!
May I ask where I can download the pre-trained checkpoints?
Thanks for this amazing repo! I have a small question about the code related to the paper. For the generate_queries function in dexgrasp_generation/network/models/graspipdf/ipdf_network.py, there are two modes "random" and "grid". I think in the paper, GraspIPDF mentions generating rotation by "grid" mode but the code is using "random" mode. Is that because the "random" mode has better performance?
Also for the "random" mode, the rotation matrices are directly generated by pytorch3d.transforms.random_rotations, will these rotations be the uniform distribution over SO(3)?
Thanks a lot!
Hi, I have tried to set the num_envs and nminibatches both to 1 and this error still happens. How large is your GPU memory? I am using 4GB currently. Or is this caused by another problem?
Hi, I have two questions, could you help me to understand them?
Cannot execute the script file in policy
from algo.pn_utils.maniskill_learn.utils.data import is_tuple_of
ModuleNotFoundError: No module named 'algo.pn_utils.maniskill_learn.utils.data'
During run dexgrasp_ Generation, an error occurred while training GrassIPDF: FileNotFoundError: [Errno 2] No such file or directory: 'data/DFCData/poses/core/browl-530c2d8f55f9e9e8ce364511e87f52b0';FileNotFoundError: [Errno 2] No such file or directory: 'data/DFCData/meshes/core/bowl-d1addad5931dd337713f2e93cbeac35d However, there are no pose or meshes in the DFCData folder in the downloaded dataset. May I ask if there is an error in the code or if the dataset name is incorrect.
PointCloud in observation is:
UniDexGrasp/dexgrasp_policy/dexgrasp/tasks/shadow_hand_random_load_vision.py
Lines 1048 to 1053 in c3f0a39
Above code gives obs as [.....| point_clouds_xyz(1024*6)| mask_hand(1024)| mask_object(1024)|...], for example,
[....|(x1,y1,z1, r1,g1,b1),(x2,y2,z2,r2,g2,b2)....|(hm1,hm2,....)|(om1,om2....)|.....]
But when reshaping point cloud:
Yet in student policy:
This is only right if pointcloud is dim-8, which requires the obs to be [.....| point_cloud_xyz_hm_om(1024*8)|...]
in which
point_cloud_xyz_hm_om
is torch.cat([pointcloud_xyz, hand_mask.float().unsqueeze(-1), object_mask.float().unsqueeze(-1)], dim=-1)
, for example [....|(x1,y1,z1,r1,g1,b1,hm1,om1),(x2,y2,z2,r2,b2,g2,hm2,om2)|....]
Hi there,
I hope this message finds you well. I have been working on training the goal grasp generation stage but feel uncertain regarding to some details of this process, specifically in relation to joint training ipdf and glow with ContactNet.
Firstly, I would like to confirm whether my understanding is correct. Am I supposed to initially train these three networks independently and then proceed to fine-tune the glow network using the pretrained ipdf and ContactNet? I became a bit confused because in the provided config file, the checkpoint selection for ipdf and ContactNet is set as the initial one.
Furthermore, It would be so helpful if you could tell me the number of epochs you have used for the pretraining and joint training.
Thank you so much for presenting such a great work 👍
Hi, thanks for your contribution.
I have test the code of dexgrasp_generation and find due to lack of data the whole training part is unexecutable.
Will you update the data/preparation in the future?
Hi, the work is truly inspiring! I have a question: Is the uploaded example model for the policy net the teacher model? If so, could you kindly share the distilled student model checkpoint for quick inference? Thank you so much.
Hello, I encountered error when installing CSDF: identifier "CHECK_EQ" is undefined
Error. I used pip install -e . and python setup.py install to install but still failed. Can you help me solve this problem? Or tell me the environment required for compilation. Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.