If I want to input one-channel images and still use the pretrained DeiT, how should I modify the code? I tried changing in_chans=1 in class AnySizePatchEmbed, but encountered the channel problem. RuntimeError: Given groups=1, weight of size [384, 3, 16, 16], expected input[7, 1, 512, 512] to have 3 channels, but got 1 channels instead
Hi, thanks for sharing the code!
If I want to input one-channel images and still use the pretrained DeiT, how should I modify the code? I tried changing
in_chans=1
inclass AnySizePatchEmbed
, but encountered the channel problem.RuntimeError: Given groups=1, weight of size [384, 3, 16, 16], expected input[7, 1, 512, 512] to have 3 channels, but got 1 channels instead