Skip to content

Commit 04d7dc3

Browse files
committed
update
1 parent a4bdc97 commit 04d7dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/pipeline_loading_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def is_safetensors_compatible(filenames, passed_components=None, folder_names=No
104104
extension is replaced with ".safetensors"
105105
"""
106106
passed_components = passed_components or []
107-
if folder_names is not None:
107+
if folder_names:
108108
filenames = {f for f in filenames if os.path.split(f)[0] in folder_names}
109109

110110
# extract all components of the pipeline and their associated files

0 commit comments

Comments
 (0)