Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pytorch implementation of diffusion models on Lie Groups for 6D grasp pose generationhttps://sites.google.com/view/se3dif/home

License

NotificationsYou must be signed in to change notification settings

robotgradient/grasp_diffusion

Repository files navigation

This library provides the tools for training and sampling diffusion models in SE(3),implemented in PyTorch.We apply them to learn 6D grasp distributions. We use the learned distribution as cost functionfor grasp and motion optimization problems.See reference [1] for additional details.

[Website][Preprint]

diffusion

Installation

Create a conda environment

condaenvcreate-fenvironment.yml

Activate the environment and install the library

condaactivatese3dif_env&&pipinstall-e .

Clonehttps://github.com/TheCamusean/mesh_to_sdf and install

pipinstall-e .

Installation Issues

  1. pip install theseus-ai not working.I suggest trying to install Theseus from sourcehttps://github.com/AI-App/Theseus

Download Data and Trained Models

We define the source of the dataset and trained models inse3dif/utils/directory_utils.pyOriginally, the data root folder is set in the folder in which the repository is (one folder before the repository).Nevertheless, you can change it by changingroot_directory inse3dif/utils/directory_utils.py.

root└─── data│   │   grasps│   │   meshes│   │   sdf│   └─── models│   │   │ graspdif_model_0│   │   │ graspdif_model_1│ └─── grasp_diffusion (repository)

Processed Data

(Based on Acronym [2] and Shapenet dataset [3])

We provide indications on how to prepare the trainingdataset inscripts/create_data.

The already prepared data can be downloaded bycd ..and downloaddata.

Trained Models

In the base folder of the repository

cd ..&&mkdirdatacddatasudoapt-getinstallgit-lfsgitlfsinstallgitclonehttps://huggingface.co/camusean/grasp_diffusionmodels

Sample Grasps

Sample given the whole object pointcloud

python scripts/sample/generate_pointcloud_6d_grasp_poses.py --n_grasps 10 --obj_id 0 --obj_class 'ScrewDriver'

Sample given a mug-specialized model

python scripts/sample/generate_pointcloud_6d_grasp_poses.py --n_grasps 10 --obj_id 10 --obj_class 'Mug' --model 'grasp_dif_mugs'

Sample given a partial pointcloud

python scripts/sample/generate_partial_pointcloud_6d_grasp_poses.py --n_grasps 10 --obj_id 12 --obj_class 'Mug'

Train a new model

Train pointcloud conditioned model

python scripts/train/train_pointcloud_6d_grasp_diffusion.py

Train partial pointcloud conditioned model

python scripts/train/train_partial_pointcloud_6d_grasp_diffusion.py

Evaluate Generated Grasps in Simulation (Isaac Gym) and compute Earth Moving Distance

To evaluate a trained model in Isaac Gym, you first have to install the simulator and install it into your conda environment.Note: for our experiments, we used Isaac Gym preview3.

In the filescripts/evaluate/evaluate_pointcloud_6d_grasp_poses.py we showcase how we evaluate the quality of the trained model

python scripts/evaluate/evaluate_pointcloud_6d_grasp_poses.py --n_grasps 100 --obj_id 0 --obj_class 'Mug' --model 'grasp_dif_mugs' --device "cuda:0"

References

[1] Julen Urain*, Niklas Funk*, Jan Peters, Georgia Chalvatzaki."SE(3)-DiffusionFields: Learning smooth cost functions for joint grasp and motion optimization through diffusion"ICRA 2023.[arxiv]

@article{urain2022se3dif,  title={SE(3)-DiffusionFields: Learning smooth cost functions for joint grasp and motion optimization through diffusion},  author={Urain, Julen and Funk, Niklas and Peters, Jan and Chalvatzaki, Georgia},  journal={IEEE International Conference on Robotics and Automation (ICRA)},  year={2023}

[2] Eppner Clemens, Arsalan Mousavian, Dieter Fox."Acronym: A large-scale grasp dataset based on simulation."IEEE International Conference on Robotics and Automation (ICRA).2021[arxiv]

[3] Chang Angel X., et al."Shapenet: An information-rich 3d model repository."arXiv preprint arXiv:1512.03012. 2015[arxiv]

Contributions

This code repository is the joint effort ofJulen Urain andNiklas Funk.

Contact

If you have any questions or find any bugs, please let me know:Julen Urain julen[at]robot-learning[dot]de

About

Pytorch implementation of diffusion models on Lie Groups for 6D grasp pose generationhttps://sites.google.com/view/se3dif/home

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp