mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix deprecated scheduler construction
This commit is contained in:
parent
7c558d5056
commit
e9a0f07033
@ -1023,7 +1023,7 @@ class Generate:
|
|||||||
if self.sampler_name in scheduler_map:
|
if self.sampler_name in scheduler_map:
|
||||||
sampler_class = scheduler_map[self.sampler_name]
|
sampler_class = scheduler_map[self.sampler_name]
|
||||||
msg = f'>> Setting Sampler to {self.sampler_name} ({sampler_class.__name__})'
|
msg = f'>> Setting Sampler to {self.sampler_name} ({sampler_class.__name__})'
|
||||||
self.sampler = sampler_class.from_config(
|
self.sampler = sampler_class.from_pretrained(
|
||||||
self.model_cache.model_name_or_path(self.model_name),
|
self.model_cache.model_name_or_path(self.model_name),
|
||||||
subfolder="scheduler"
|
subfolder="scheduler"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user