Transfers parameters with matching names and shapes from 'weights' to model.
(self, weights='yolov8n.pt')
| 181 | return self |
| 182 | |
| 183 | def load(self, weights='yolov8n.pt'): |
| 184 | """Transfers parameters with matching names and shapes from 'weights' to model.""" |
| 185 | self._check_is_pytorch_model() |
| 186 | if isinstance(weights, (str, Path)): |
| 187 | weights, self.ckpt = attempt_load_one_weight(weights) |
| 188 | self.model.load(weights) |
| 189 | return self |
| 190 | |
| 191 | def info(self, detailed=False, verbose=True): |
| 192 | """ |
no test coverage detected