pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

Joining a Batch of Scenes

Open fishbotics opened this issue 5 months ago • 1 comments

❓ Questions on how to use PyTorch3D

I'm trying to render a batch of images where each image is a scene. I have two meshes objects that I'd like to place in the same scene, but each object has a batch dimension. What's the best way to merge these?

In other words, I have two batches mesh objects and I'd like to merge them into a new batched mesh object with the same batch size.

join_meshes_as_scene seems to put everything into a single scene, which is not what I want

Thanks!

fishbotics avatar Mar 12 '24 01:03 fishbotics

Can you do something like

m = []
for i in range(len(meshes1)):
    m.append(join_meshes_as_scene([meshes1[i], meshes2[i]))
meshes = join_meshes_as_batch(m)

bottler avatar Mar 12 '24 13:03 bottler