(self, p, *args)
| 304 | sd_unet.current_unet.switch_engine() |
| 305 | |
| 306 | def before_hr(self, p, *args): |
| 307 | if self.idx != self.hr_idx: |
| 308 | sd_unet.current_unet.profile_idx = self.hr_idx |
| 309 | sd_unet.current_unet.switch_engine() |
| 310 | |
| 311 | return super().before_hr(p, *args) # 4 (Only when HR starts.....) |
| 312 | |
| 313 | def after_extra_networks_activate(self, p, *args, **kwargs): |
| 314 | if self.update_lora and not self.torch_unet: |
nothing calls this directly
no test coverage detected