Open adherent-ls opened 3 weeks ago
Although Swin transformer is not used in the code, there are some suggestions that may be worth trying. The errors you're encountering seem to be related to data types being incompatible with the expected input types for certain PaddlePaddle functions.
SwinTransformer 作为backbone , , H, W = x.shape if W % self.patch_size[1] != 0: x = F.pad(x, [0, self.patch_size[1] - W % self.patch_size[1], 0, 0])