Closed WinterPan2017 closed 2 years ago
Thanks for your attention. The inputs of TreeFilter2D should be CUDA tensor types. Please just put the image tensor to the CUDA device first.
image = torch.tensor(
[[[
[0, 0, 0],
[0, 0.7, 0],
[0, 0, 0],
]]], dtype=torch.float).cuda()
Got it, Thanks a lot!
Hello, Thanks for your excellent work. I tried to generate a refined mask using low-level features, but I got nan after using TreeFilter2D. I use the same image as the low-level features and prediction for simplicity. My code is as below.
Is there something wrong with my usage? I'm looking forward for your reply.