(self, batch: Dict)
| 190 | self.additional_decode_keys = set(default(additional_decode_keys, [])) |
| 191 | |
| 192 | def get_input(self, batch: Dict) -> torch.Tensor: |
| 193 | # assuming unified data format, dataloader returns a dict. |
| 194 | # image tensors should be scaled to -1 ... 1 and in channels-first |
| 195 | # format (e.g., bchw instead if bhwc) |
| 196 | return batch[self.input_key] |
| 197 | |
| 198 | def get_autoencoder_params(self) -> list: |
| 199 | params = [] |
no outgoing calls
no test coverage detected