rgres commited on
Commit
68da561
1 Parent(s): 16b3d38

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. handler.py +1 -1
README.md CHANGED
@@ -7,4 +7,4 @@ tags:
7
  inference: true
8
  ---
9
 
10
- # Inference Endpoint for [ControlNet](https://huggingface.co/lllyasviel/ControlNet) using [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5)
 
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-aerialdreams", torch_dtype=torch.float16)
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