mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 08:19:11 +02:00
enable backend switching on-the-fly
This commit is contained in:
@@ -49,7 +49,10 @@ samplers_data_diffusers = [
|
||||
|
||||
class DiffusionSampler:
|
||||
def __init__(self, name, constructor, model, **kwargs):
|
||||
self.config = {}
|
||||
self.config = config['All'].copy()
|
||||
if not hasattr(model, 'scheduler'):
|
||||
return
|
||||
for key, value in config.get(name, {}).items(): # diffusers defaults
|
||||
self.config[key] = value
|
||||
for key, value in model.scheduler.config.items(): # model defaults
|
||||
|
||||
Reference in New Issue
Block a user