Closed d4l3k closed 1 year ago
@bottler can you review this when you get a chance? Thanks!
@bottler has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@bottler merged this pull request in facebookresearch/pytorch3d@b7f4ba097cebab303471119fdaac97b50a72e7d0.
Thanks!
This exposes a setting on VolumeSampler so you can change the padding_mode. This is very useful when using cameras inside a volume that doesn't cover the entire world. By setting the value to
border
you can get much better behavior thanzeros
which causes edge effects for things like the sky. Border emulates infinitely tall buildings instead.Test plan:
Tested with torchdrive
Example before:
Example after: