Closed zhongruiHuangDMRI closed 4 months ago
Why was this closed ? It appears that patchify and unpatchify functions still hardcode RGB instead of using the number of input channel ?
FYI -- This is basically for an audio spectrogram while we also just have applied it to an image.
Dear author: Thanks for your great work. The only suggestion I found is that, for some cases (like medical image), we use 1 channel image (gray) instead of colorful image (RGB). Here are the revised code (patchify and unpatchify function) for any channel image : (Written by @CH2-Carbene)