autonomousvision / giraffe

This repository contains the code for the CVPR 2021 paper "GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields"
https://m-niemeyer.github.io/project-pages/giraffe/index.html
MIT License
1.23k stars 160 forks source link

about how to get shape and appearance code #23

Closed gulinsong closed 3 years ago

gulinsong commented 3 years ago

Hi , thanks for your great work. I want to know about how to get shape and appearance codes, are these encoded from an image when training, and generate randomly when testing?

m-niemeyer commented 3 years ago

Hi @gulinsong , they are randomly sampled when testing; We have not added the option to obtain a shape / appearance code for a given input image. This could be done with test-time optimization of the latent codes, or adding an encoder during training.