MCPcopy Index your code
hub / github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT / before_hr

Method before_hr

scripts/trt.py:306–311  ·  view source on GitHub ↗
(self, p, *args)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

switch_engineMethod · 0.80

Tested by

no test coverage detected