edge-informed-sisr
edge-informed-sisr copied to clipboard
TypeError: torch.FloatTensor is not a Module subclass
Traceback (most recent call last):
File "train.py", line 2, in
@qingfengmingyue
i found the working fix, please add the below code will fix this problem(just comment the add_module for scale_kernel instead create scale_kernel variable).
#self.add_module('scale_kernel', kernel_weight) self.scale_kernel = torch.tensor(np.tile(kernel, (3, 1, 1, 1))).float()
@Dayananda-V Can you show the result? I just figure out the mosaic.