google / hdrnet

An implementation of 'Deep Bilateral Learning for Real-Time Image Enhancement', SIGGRAPH 2017
https://groups.csail.mit.edu/graphics/hdrnet/
Apache License 2.0
812 stars 308 forks source link

Question on bilateral slice operation #19

Open creotiv opened 2 years ago

creotiv commented 2 years ago

I tried to re-implement your solution on PyTorch with using F.grid_sample operation, which can do slicing and then use affine transformation on coefs from slices to build and image. But somehow network doesn't train as it should. All nn stuff checked many times, and it looks similar to the original code. But grid_sample under the question.

Maybe you or you colleagues who worked with pytorch can say how bilateral slice and grid_sample can be different? Cause im totally not an expert in Cuda code.

Thanks.