Get the custom weights directory path.
(self)
| 288 | |
| 289 | @property |
| 290 | def weights_dir(self) -> Optional[Path]: |
| 291 | """Get the custom weights directory path.""" |
| 292 | weights = self.get("paths.weights", "") |
| 293 | return Path(weights) if weights else None |
| 294 | |
| 295 | |
| 296 | # Global settings instance |