mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-28 02:33:57 +00:00
better diffusers handling
This commit is contained in:
@@ -33,17 +33,9 @@ class PreprocessorMarigold(Preprocessor):
|
||||
if self.model_patcher is not None:
|
||||
return
|
||||
|
||||
checkpoint_path = os.path.join(preprocessor_dir, 'marigold')
|
||||
|
||||
if not os.path.exists(checkpoint_path):
|
||||
snapshot_download(repo_id="Bingxin/Marigold",
|
||||
ignore_patterns=["*.bin"],
|
||||
local_dir=checkpoint_path,
|
||||
local_dir_use_symlinks=False)
|
||||
|
||||
self.diffusers_patcher = DiffusersModelPatcher(
|
||||
pipeline_class=MarigoldPipeline,
|
||||
pretrained_path=checkpoint_path,
|
||||
pretrained_path="Bingxin/Marigold",
|
||||
enable_xformers=False,
|
||||
noise_scheduler_type='DDIMScheduler')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user