disable safety_checker
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -13,7 +13,7 @@ if device.type != "cuda":
|
|
| 13 |
|
| 14 |
class EndpointHandler():
|
| 15 |
def __init__(self, path="") :
|
| 16 |
-
self.pipe = StableDiffusionAdapterPipeline.from_pretrained(path, feature_extractor=None, adapter=None,torch_dtype=torch.float16)
|
| 17 |
self.pipe = self.pipe.to(device)
|
| 18 |
|
| 19 |
|
|
|
|
| 13 |
|
| 14 |
class EndpointHandler():
|
| 15 |
def __init__(self, path="") :
|
| 16 |
+
self.pipe = StableDiffusionAdapterPipeline.from_pretrained(path, feature_extractor=None, adapter=None, safety_checker=None, torch_dtype=torch.float16)
|
| 17 |
self.pipe = self.pipe.to(device)
|
| 18 |
|
| 19 |
|