Upload folder using huggingface_hub
Browse files- README.md +1 -1
- handler.py +1 -1
README.md
CHANGED
@@ -7,4 +7,4 @@ tags:
|
|
7 |
inference: true
|
8 |
---
|
9 |
|
10 |
-
# Inference Endpoint for [
|
|
|
7 |
inference: true
|
8 |
---
|
9 |
|
10 |
+
# Inference Endpoint for [Seg2Sat](https://huggingface.co/rgres/Seg2Sat-sd-controlnet) using [runwayml/stable-diffusion-v1-5](https://huggingface.co/stabilityai/stable-diffusion-2-1-base)
|
handler.py
CHANGED
@@ -17,7 +17,7 @@ class EndpointHandler():
|
|
17 |
def __init__(self, path=""):
|
18 |
self.stable_diffusion_id = "stabilityai/stable-diffusion-2-1-base"
|
19 |
|
20 |
-
controlnet = ControlNetModel.from_pretrained("rgres/sd-controlnet
|
21 |
|
22 |
self.pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
23 |
self.stable_diffusion_id, controlnet=controlnet, torch_dtype=dtype, safety_checker=None
|
|
|
17 |
def __init__(self, path=""):
|
18 |
self.stable_diffusion_id = "stabilityai/stable-diffusion-2-1-base"
|
19 |
|
20 |
+
controlnet = ControlNetModel.from_pretrained("rgres/Seg2Sat-sd-controlnet", torch_dtype=torch.float16)
|
21 |
|
22 |
self.pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
23 |
self.stable_diffusion_id, controlnet=controlnet, torch_dtype=dtype, safety_checker=None
|