Contact-GraspNet Pytorch
Pytorch implementation of Contact-GraspNet. This repo is based heavily on https://github.com/alinasarmiento/pytorch_contactnet. Original Tensorflow implementation can be found at: https://github.com/NVlabs/contact_graspnet
Installation Instructions
pip install cgn-pytorch
Usage:
import cgn_pytorch
cgn_model, optimizer, config_dict = cgn_pytorch.from_pretrained(cpu=False)
Run The Demo
Clone this Repo
git clone https://github.com/sebbyjp/cgn_pytorch.git
Install Dependencies
pip3 install -r requirements.txt
Vizualization
We're doing our visualizations in MeshCat. In a separate tab, start a meshcat server with meshcat-server
From here you can run python3 eval.py
To visualize different confidence threshold masks on the grasps, use the --threshold argument such as --threshold=0.8
To visualize different cluttered scenes (8-12 tabletop objects rendered in pyrender from ACRONYM), use the argument --scene and manually feed in a file name such as --scene=002330.npz.Your possible files are:
- 002330.npz
- 004086.npz
- 005274.npz
Predicting grasps on your own pointclouds
The model should work on any pointcloud of shape (Nx3). For most consistent results, please make sure to put the pointcloud in the world frame and center it by subtracting the mean. Do not normalize the pointcloud to a unit sphere or unit box, as "graspability" naturally changes depending on the size of the objects (so we don't want to lose that information about the scene by scaling it).
Metadata
Release files for cgn-pytorch 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cgn_pytorch-0.4.3.tar.gz | 30.1 MB | Without provenance | Details for cgn_pytorch-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cgn_pytorch-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for cgn_pytorch-0.4.3-py3-none-any.whl |
Total release size: 60.3 MB
Release files / cgn_pytorch-0.4.3.tar.gz
| Download URL | cgn_pytorch-0.4.3.tar.gz |
|---|---|
| Size | 30.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e198d580a9a7b908d533d09edf6328b884ffcb363e15690e48e1df4b8c5946cb
|
|
BLAKE2b-256 checksum How to use checksums |
476a8e49b0e5a7303c63e9b62bfd55b6b1cefac51ba01e44a44d1978e3638e72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.4.16-linuxkit
|
Release files / cgn_pytorch-0.4.3-py3-none-any.whl
| Download URL | cgn_pytorch-0.4.3-py3-none-any.whl |
|---|---|
| Size | 30.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
600c1806af6a8a2a9ee6557c988126eea88a2edfd4984384008946572351c160
|
|
BLAKE2b-256 checksum How to use checksums |
97fc88262355ef8d02983152fcdc6a1baa27b662a1306c2b4970df084131087e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.4.16-linuxkit
|
Security for cgn-pytorch 0.4.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.