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.24k stars 160 forks source link

[code] details about collison check #19

Closed Feynman1999 closed 3 years ago

Feynman1999 commented 3 years ago

in bounding box generator class, function 'check_for_collison'. Can you explain why do this for n_boxes==2, and how do it (intuitive explanation for s and t params)?

m-niemeyer commented 3 years ago

Hi @Feynman1999 , I added this code but didn't use it in this project. The idea is here that if you have more than one object, the positions you want to sample should not overlap (that's also where the s and t params come into play, as you need the position and scale for each object to be able to determine whether or not they overlap).