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
566bdf4c
Unverified
Commit
566bdf4c
authored
Sep 14, 2023
by
bonlime
Committed by
GitHub
Sep 14, 2023
Browse files
Allow disabling `from_pretrained` tqdm (#5007)
parent
0eb715d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/pipeline_utils.py
src/diffusers/pipelines/pipeline_utils.py
+1
-1
No files found.
src/diffusers/pipelines/pipeline_utils.py
View file @
566bdf4c
...
@@ -1079,7 +1079,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
...
@@ -1079,7 +1079,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
from
diffusers
import
pipelines
from
diffusers
import
pipelines
# 6. Load each module in the pipeline
# 6. Load each module in the pipeline
for
name
,
(
library_name
,
class_name
)
in
tqdm
(
init_dict
.
items
(),
desc
=
"Loading pipeline components..."
):
for
name
,
(
library_name
,
class_name
)
in
logging
.
tqdm
(
init_dict
.
items
(),
desc
=
"Loading pipeline components..."
):
# 6.1 - now that JAX/Flax is an official framework of the library, we might load from Flax names
# 6.1 - now that JAX/Flax is an official framework of the library, we might load from Flax names
class_name
=
class_name
[
4
:]
if
class_name
.
startswith
(
"Flax"
)
else
class_name
class_name
=
class_name
[
4
:]
if
class_name
.
startswith
(
"Flax"
)
else
class_name
...
...
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