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):
)
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
......
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