phoenixtreesky7 / CFEN-ViT-Dehazing

17 stars 3 forks source link

The size of tensor error #12

Open chenhuiphd opened 1 year ago

chenhuiphd commented 1 year ago

Hi,When I tested, the following error occurred. May I ask how the code should be modified? File "E:\PycharmProjects\CFEN-ViT-Dehazing-main\models\ipt.py", line 634, in forward x = self.encoder(x+pos) RuntimeError: The size of tensor a (1024) must match the size of tensor b (256) at non-singleton dimension 0 Thx