(self, image_path)
| 350 | self.display_image(file_path) |
| 351 | |
| 352 | def display_image(self, image_path): |
| 353 | try: |
| 354 | pixmap = QPixmap(image_path) |
| 355 | scaled_pixmap = pixmap.scaled(400, 300, Qt.AspectRatioMode.KeepAspectRatio, |
| 356 | Qt.TransformationMode.SmoothTransformation) |
| 357 | self.image_preview.setPixmap(scaled_pixmap) |
| 358 | except Exception as e: |
| 359 | self.image_preview.setText(f'Error loading image: {e}') |
| 360 | |
| 361 | def load_model(self): |
| 362 | model_path = self.model_path_input.text() |