Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoder can only fit 1 obj? #117

Open
Justinfungi opened this issue Nov 21, 2023 · 0 comments
Open

Encoder can only fit 1 obj? #117

Justinfungi opened this issue Nov 21, 2023 · 0 comments

Comments

@Justinfungi
Copy link

with torch.no_grad():
    latent = xm.encoder.encode_to_bottleneck(batch)

    render_mode = 'stf' # you can change this to 'nerf'
    size = 128 # recommended that you lower resolution when using nerf

    cameras = create_pan_cameras(size, device)
    images = decode_latent_images(xm, latent, cameras, rendering_mode=render_mode)
    display(gif_widget(images))

It appears that the existing code can only handle one object at a time by loading an initial object into the encoder and modifying it based on a single input. However, there is a desire to feed multiple objects into the encoder and generate latents for each object. Unfortunately, there is currently no callback mechanism available in the code to enable the generation of latents for multiple objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant