@@ -103,9 +103,9 @@ def load_attn_procs(self, pretrained_model_name_or_path_or_dict: Union[str, Dict
103103 force_download (`bool`, *optional*, defaults to `False`):
104104 Whether or not to force the (re-)download of the model weights and configuration files, overriding the
105105 cached versions if they exist.
106- resume_download (`bool`, *optional*, defaults to `False`) :
107- Whether or not to resume downloading the model weights and configuration files. If set to `False`, any
108- incompletely downloaded files are deleted .
106+ resume_download:
107+ Deprecated and ignored. All downloads are now resumed by default when possible. Will be removed in v1
108+ of Diffusers .
109109 proxies (`Dict[str, str]`, *optional*):
110110 A dictionary of proxy servers to use by protocol or endpoint, for example, `{'http': 'foo.bar:3128',
111111 'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request.
@@ -149,7 +149,7 @@ def load_attn_procs(self, pretrained_model_name_or_path_or_dict: Union[str, Dict
149149
150150 cache_dir = kwargs .pop ("cache_dir" , None )
151151 force_download = kwargs .pop ("force_download" , False )
152- resume_download = kwargs .pop ("resume_download" , False )
152+ resume_download = kwargs .pop ("resume_download" , None )
153153 proxies = kwargs .pop ("proxies" , None )
154154 local_files_only = kwargs .pop ("local_files_only" , None )
155155 token = kwargs .pop ("token" , None )
@@ -1090,9 +1090,9 @@ def from_single_file(cls, pretrained_model_link_or_path, **kwargs):
10901090 cache_dir (`Union[str, os.PathLike]`, *optional*):
10911091 Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
10921092 is not used.
1093- resume_download (`bool`, *optional*, defaults to `False`) :
1094- Whether or not to resume downloading the model weights and configuration files. If set to `False`, any
1095- incompletely downloaded files are deleted .
1093+ resume_download:
1094+ Deprecated and ignored. All downloads are now resumed by default when possible. Will be removed in v1
1095+ of Diffusers .
10961096 proxies (`Dict[str, str]`, *optional*):
10971097 A dictionary of proxy servers to use by protocol or endpoint, for example, `{'http': 'foo.bar:3128',
10981098 'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request.
@@ -1114,7 +1114,7 @@ def from_single_file(cls, pretrained_model_link_or_path, **kwargs):
11141114 raise ValueError ("FromOriginalUNetMixin is currently only compatible with StableCascadeUNet" )
11151115
11161116 config = kwargs .pop ("config" , None )
1117- resume_download = kwargs .pop ("resume_download" , False )
1117+ resume_download = kwargs .pop ("resume_download" , None )
11181118 force_download = kwargs .pop ("force_download" , False )
11191119 proxies = kwargs .pop ("proxies" , None )
11201120 token = kwargs .pop ("token" , None )
0 commit comments