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

Allow disabling from_pretrained tqdm (#5007)

This commit is contained in:
bonlime
2023-09-14 17:36:19 +03:00
committed by GitHub
parent 0eb715d715
commit 566bdf4c44

View File

@@ -1079,7 +1079,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
from diffusers import pipelines
# 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
class_name = class_name[4:] if class_name.startswith("Flax") else class_name