"tests/git@developer.sourcefind.cn:OpenDAS/diffusers.git" did not exist on "35fd84be2745a1d1d288b16dae8baf766c7af294"
Unverified Commit 2cf34e6d authored by Will Berman's avatar Will Berman Committed by GitHub
Browse files

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

parent 04ad9486
...@@ -531,8 +531,7 @@ class DiffusionPipeline(ConfigMixin): ...@@ -531,8 +531,7 @@ class DiffusionPipeline(ConfigMixin):
) )
else: else:
cached_folder = pretrained_model_name_or_path 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 # 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 # if we load from explicit class, let's use it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment