Skip to content

Commit

Permalink
Remove load_safety_checker=False from calls to from_single_file(...).
Browse files Browse the repository at this point in the history
This param has been deprecated, and by including it (even when set to
False) the safety checker automatically gets downloaded.
  • Loading branch information
RyanJDick authored and maryhipp committed Oct 28, 2024
1 parent 1a13af3 commit 07ab116
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def _load_from_singlefile(
torch_dtype=self._torch_dtype,
prediction_type=prediction_type,
upcast_attention=upcast_attention,
load_safety_checker=False,
)

if not submodel_type:
Expand Down

0 comments on commit 07ab116

Please sign in to comment.