(self, super_animal: str)
| 573 | ) |
| 574 | |
| 575 | def _update_detectors(self, super_animal: str) -> None: |
| 576 | if len(super_animal) == 0: |
| 577 | set_combo_items(combo_box=self.detector_type_selector, items=[]) |
| 578 | return |
| 579 | |
| 580 | items = [] |
| 581 | if self.root.engine == Engine.PYTORCH: |
| 582 | if super_animal == "superanimal_humanbody": |
| 583 | items = list(TORCHVISION_DETECTORS.keys()) |
| 584 | else: |
| 585 | items = dlclibrary.get_available_detectors(super_animal) |
| 586 | set_combo_items(combo_box=self.detector_type_selector, items=items) |
| 587 | set_layout_contents_visible(self.detector_row, self.root.engine == Engine.PYTORCH) |
| 588 | |
| 589 | def _update_adaptation_detector_visibility(self, superanimal: str): |
| 590 | self.adapt_det_epoch_label.setVisible(superanimal != "superanimal_humanbody") |
no test coverage detected