mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 11:19:53 +00:00
fix: remove unused cn
This commit is contained in:
@@ -5,12 +5,6 @@ from contextlib import contextmanager
|
||||
from modules import img2img, processing, shared
|
||||
|
||||
|
||||
def cn_restore_unet_hook(p, cn_latest_network):
|
||||
if cn_latest_network is not None:
|
||||
unet = p.sd_model.model.diffusion_model
|
||||
cn_latest_network.restore(unet)
|
||||
|
||||
|
||||
class CNHijackRestore:
|
||||
def __init__(self):
|
||||
self.process = hasattr(processing, "__controlnet_original_process_images_inner")
|
||||
|
||||
Reference in New Issue
Block a user