(self, batch: Dict)
| 174 | self.additional_decode_keys = set(default(additional_decode_keys, [])) |
| 175 | |
| 176 | def get_input(self, batch: Dict) -> torch.Tensor: |
| 177 | # assuming unified data format, dataloader returns a dict. |
| 178 | # image tensors should be scaled to -1 ... 1 and in channels-first |
| 179 | # format (e.g., bchw instead if bhwc) |
| 180 | return batch[self.input_key] |
| 181 | |
| 182 | def get_autoencoder_params(self) -> list: |
| 183 | params = [] |
no outgoing calls
no test coverage detected