Extending DenseNet121 and MedNist Classifier Tutorial for 3-Channel Images #1411
-
Hi MONAI Community, In trying to extend the code from the MedNist Classifier tutorial to use 3-channel jpgs, I receive an error message regarding the input size:
The change I expected to use is the 'in-channels' from 1 in the tutorial to 3 as follows:
The input size in the MedNist Classifier tutorial is [300, 1, 64, 64] and thus changing the in_channels alone is insufficient for 3-channel jpgs. Is there an argument to LoadImage to flatten? Or another approach? Any advice would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I missed the Thanks all! |
Beta Was this translation helpful? Give feedback.
I missed the
AddChannel()
in the transforms. Problem solved. 🙏Thanks all!