PatchCore training. This function computes the embeddings of the training data and fills the memory bank of SPADE.
(self, training_data)
| 145 | return _detach(features) |
| 146 | |
| 147 | def fit(self, training_data): |
| 148 | """PatchCore training. |
| 149 | |
| 150 | This function computes the embeddings of the training data and fills the |
| 151 | memory bank of SPADE. |
| 152 | """ |
| 153 | self._fill_memory_bank(training_data) |
| 154 | |
| 155 | def _fill_memory_bank(self, input_data): |
| 156 | """Computes and sets the support features for SPADE.""" |
no test coverage detected