Initialize AutoVision with optional pre-trained model
(self, model_path=None)
| 10 | |
| 11 | class AutoVision: |
| 12 | def __init__(self, model_path=None): |
| 13 | """Initialize AutoVision with optional pre-trained model""" |
| 14 | self.model = None |
| 15 | self.feature_extractors = {} |
| 16 | self.classes = [] |
| 17 | |
| 18 | # Get absolute path for model files |
| 19 | if model_path: |
| 20 | self.model_path = self._get_resource_path(model_path) |
| 21 | self.load_model(self.model_path) |
| 22 | |
| 23 | def _get_resource_path(self, relative_path): |
| 24 | """Get absolute path to resource, works for dev and PyInstaller""" |
nothing calls this directly
no test coverage detected