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

Hard code to mannually make sigma to 0 #57

Open xiaobiaodu opened 11 months ago

xiaobiaodu commented 11 months ago

Hi

I saw a piece of code in generator.py to set the sigma to 0. I am very confused as to why you set it like this. What benefits would it bring?

                padd = 0.1
                mask_box = torch.all(
                    p_i <= 1. + padd, dim=-1) & torch.all(
                        p_i >= -1. - padd, dim=-1)
                sigma_i[mask_box == 0] = 0.