(self)
| 59 | return f'cuda:{cfg.AI_device}' |
| 60 | |
| 61 | def setup_hardware(self): |
| 62 | if cfg.mouse_ghub and not hasattr(self, 'ghub'): |
| 63 | from logic.ghub import gHub |
| 64 | self.ghub = gHub |
| 65 | |
| 66 | if cfg.mouse_rzr and not hasattr(self, 'rzr'): |
| 67 | from logic.rzctl import RZCONTROL |
| 68 | dll_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "rzctl.dll") |
| 69 | self.rzr = RZCONTROL(dll_path) |
| 70 | if not self.rzr.init(): |
| 71 | logger.error("Failed to initialize rzctl") |
| 72 | |
| 73 | def process_data(self, data): |
| 74 | if isinstance(data, sv.Detections): |
no test coverage detected