mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
add sd35 controlnets
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -535,7 +535,6 @@ def torchao_quantization(sd_model):
|
||||
if hasattr(sd_model, 'transformer') and 'Model' in shared.opts.torchao_quantization:
|
||||
modules.append('transformer')
|
||||
q.quantize_(sd_model.transformer, fn(), device=devices.device)
|
||||
# sd_model.transformer = q.autoquant(sd_model.transformer, error_on_unseen=False)
|
||||
if hasattr(sd_model, 'vae') and 'VAE' in shared.opts.torchao_quantization:
|
||||
modules.append('vae')
|
||||
q.quantize_(sd_model.vae, fn(), device=devices.device)
|
||||
|
||||
Reference in New Issue
Block a user