Commit e4fbf22
committed
fix(safety_checker): drop DummySafetyChecker and just use None
Originally we had to instantiate a DummySafetyChecker() to replace
the built in safety checker if we wanted to disable it. However,
diffusers (for a while now) supports safety_checker=None, which is
also less brittle.1 parent 7a64846 commit e4fbf22
1 file changed
Lines changed: 1 addition & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 52 | | |
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
62 | | - | |
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
| |||
75 | 68 | | |
76 | 69 | | |
77 | 70 | | |
78 | | - | |
79 | | - | |
80 | 71 | | |
81 | 72 | | |
82 | 73 | | |
| |||
140 | 131 | | |
141 | 132 | | |
142 | 133 | | |
143 | | - | |
144 | 134 | | |
145 | 135 | | |
146 | 136 | | |
| |||
310 | 300 | | |
311 | 301 | | |
312 | 302 | | |
313 | | - | |
314 | | - | |
315 | | - | |
| 303 | + | |
316 | 304 | | |
317 | 305 | | |
318 | 306 | | |
| |||
0 commit comments