Closed soulslicer closed 4 years ago
You have two problems for depth warping, an easy one and a hard one :
Thanks for your input.
I. Yes you are right. I would need to then write my own warping function that converts my depth map into a point cloud, transform then project it to a new location right?
You are talking about direct warping, which is the inverse of inverse warping. But yes you are right, this would work, but this would not be differentiable.
For differentiable direct warping, you might want to have a look at redner of pytroch3d : https://github.com/BachiLi/redner https://github.com/facebookresearch/pytorch3d
I am unable to get your function to work on depth maps, for some reason i always get artifacts like this:
The function works perfectly with the rgb images. But somehow fails when i pass in a sparse depth map. Any clue why this might be the case. This is very strange because the only part when the input image gets changed is in the grid_sample function.
i tried manually doing my own projection and everything looks correct, yet when applying this funciton i get alot of noise
EDIT: I have realized that this is happening because the depth we pass in inherently has holes in it (which shouldnt happen during training time)
what was your depth like in the first place ? The ghosting effect sure shouldn't do that king of agglutination in front of the lens
Does this function work exactly the same if we want to transform a depthmap from one frame to another (instead of an RGB image?)