Comments (6)
Hi, thanks for your interest in our work! The composed_scene
here is the ground truth mesh and the added grasps. It's for visualization. If you want to get the 3D reconstruction, you can refer to this line: https://github.com/UT-Austin-RPL/GIGA/blob/d67c4388d334babe6c11c1555a6e848fb4828c84/scripts/eval_geometry_voxel.py#LL80C32-L80C32.
from giga.
Thank you for the fast response. What is the argument pc_in
exactly? Is it the raw pointcloud from the camera, including all objects and the table they are sitting on?
I am trying to do inference from a depth camera I have in real life, not from the simulation
from giga.
Hi, we crop the raw point cloud to remove the table surface and only keep the objects.
from giga.
Hi, so I think I managed to put together a working script. Could you please let me know if this (pseudocode) looks correct? Thank you very much in advance.
from vgn.detection_implicit import VGNImplicit # GIGA
from vgn.perception import TSDFVolume, create_tsdf
from vgn.ConvONets.conv_onet.generation import Generator3D
O_RESOLUTION = 40
O_SIZE = 0.3 # Meters --> I saw this somewhere in the repo
O_VOXEL_SIZE = O_SIZE / O_RESOLUTION
giga_model = VGNImplicit(
model_path=model_path,
model_type="giga",
visualize=vis,
best=True,
qual_th=0.75,
force_detection=True,
out_th=0.1,
select_top=False,
)
generator = Generator3D(
self.giga_model.net,
device=self.giga_model.device,
input_type='pointcloud',
padding=0,
)
tsdf_volume = create_tsdf(
size=O_SIZE,
resolution=O_RESOLUTION,
depth_imgs=np.expand_dims(depth, axis=0),
intrinsic=self.camera_intrinsic,
extrinsics=np.expand_dims(camera_pose, axis=0),
)
pc_torch = torch.tensor(tsdf_volume.get_grid())
pred_mesh, _ = generator.generate_mesh({'inputs': pc_torch})
# scale back to original size
scale_matrix = np.eye(4)
scale_matrix[:3, :3] *= O_SIZE
pred_mesh.apply_transform(scale_matrix)
from giga.
Yes, I think it's correct. I just re-ran the code and found input to generate_mesh
is with size torch.Size([1, 40, 40, 40])
, so it's a tsdf grid.
from giga.
Great, thank you!
from giga.
Related Issues (20)
- New dataset HOT 3
- Visualizing on custom dataset HOT 9
- Visualization of data generation HOT 2
- visual HOT 1
- How to use GIGA on real robot? HOT 2
- how to query at a higher resolution of 60×60×60 HOT 4
- Installation error: " LINK : fatal error LNK1181: can not open input file“m.lib” " HOT 4
- About NVIDIA Driver in WSL2 HOT 5
- Scene Descriptor HOT 2
- No module named vgn HOT 2
- libmesh failed! HOT 2
- question about GIGA(HR) HOT 1
- Train GIGA HOT 1
- Can't log _aff.obj when running sim_grasp_multiple.py HOT 1
- Some confusion in the paper HOT 2
- The program that generates data gets stuck in the first loop HOT 2
- The time to generate the training set HOT 1
- Re-implentation in real world HOT 6
- Did you consider trying to avoid using the grasp data on the wrong voxels? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from giga.