Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
2cf34e6d
Unverified
Commit
2cf34e6d
authored
Jan 27, 2023
by
Will Berman
Committed by
GitHub
Jan 27, 2023
Browse files
[from_pretrained] only load config one time (#2131)
parent
04ad9486
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/diffusers/pipelines/pipeline_utils.py
src/diffusers/pipelines/pipeline_utils.py
+1
-2
No files found.
src/diffusers/pipelines/pipeline_utils.py
View file @
2cf34e6d
...
@@ -531,7 +531,6 @@ class DiffusionPipeline(ConfigMixin):
...
@@ -531,7 +531,6 @@ 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment