1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[from_pretrained] only load config one time (#2131)

This commit is contained in:
Will Berman
2023-01-27 08:23:55 -08:00
committed by GitHub
parent 04ad948673
commit 2cf34e6db4

View File

@@ -531,8 +531,7 @@ class DiffusionPipeline(ConfigMixin):
)
else:
cached_folder = pretrained_model_name_or_path
config_dict = cls.load_config(cached_folder)
config_dict = cls.load_config(cached_folder)
# 2. Load the pipeline class, if using custom module then load it from the hub
# if we load from explicit class, let's use it