swin_unetr_btcv_segmentation #1204
-
hi, I want to change this model and let it can work in 1 channel input & 2 channel output.(background&spleen). I change it like below.But,it didn't work. it would stop and keep"2023-02-03 04:05:35,605 - ignite.engine.engine.SupervisedTrainer - INFO - Engine run resuming from iteration 0, epoch 0 until 2 epochs",and have't any Error message. I check the place which it jump in and don't jump out. The place is in "/home/u2562867/.local/lib/python3.8/site-packages/ignite/engine/engine.py",1064 line =" self.state.output = self._process_function(self, self.state.batch)",which is also in "/home/u2562867/.local/lib/python3.8/site-packages/monai/engines/trainer.py",226 line"engine.scaler.scale(engine.state.output[Keys.LOSS]).backward()" Here is my json code. Please help me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @katy070222, if you want to change the output channel, you could do something like this:
Hope it can help you, thanks! |
Beta Was this translation helpful? Give feedback.
Hi @katy070222, if you want to change the output channel, you could do something like this:
Hope it can help you, thanks!