You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expected behavior should be that sample['target'] is 1.
Note:
When predicting, I see that we select the middle of the stack, but the default setting for the target should be always be one
defon_before_batch_transfer(self, batch: Sample, dataloader_idx: int) ->Sample:
predicting=Falseifself.trainer:
ifself.trainer.predicting:
predicting=Trueifpredictingorisinstance(batch, torch.Tensor):
# skipping example input arrayreturnbatchifself.target_2d:
# slice the center during training or testingz_index=self.z_window_size//2batch["target"] =batch["target"][:, :, slice(z_index, z_index+1)]
returnbatch
The text was updated successfully, but these errors were encountered:
We were expecting that after setting an
HCSDataModule().test_dataloader()
The expected behavior should be that
sample['target']
is 1.Note:
When predicting, I see that we select the middle of the stack, but the default setting for the target should be always be one
The text was updated successfully, but these errors were encountered: