radames commited on
Commit
fd757d2
1 Parent(s): 0b5ceff
frontend/src/routes/+page.svelte CHANGED
@@ -46,9 +46,8 @@
46
  lcmLiveActions.send($onFrameChangeStore.blob);
47
  }
48
  }
49
- // send only prompt if text mode
50
  $: {
51
- if ($lcmLiveStatus === LCMLiveStatus.CONNECTED) {
52
  lcmLiveActions.send($deboucedPipelineValues);
53
  }
54
  }
 
46
  lcmLiveActions.send($onFrameChangeStore.blob);
47
  }
48
  }
 
49
  $: {
50
+ if (!isImageMode && $lcmLiveStatus === LCMLiveStatus.CONNECTED) {
51
  lcmLiveActions.send($deboucedPipelineValues);
52
  }
53
  }
pipelines/controlnet.py CHANGED
@@ -26,7 +26,8 @@ default_prompt = "Portrait of The Terminator with , glare pose, detailed, intric
26
 
27
  class Pipeline:
28
  class Info(BaseModel):
29
- name: str = "txt2img"
 
30
  description: str = "Generates an image from a text prompt"
31
  input_mode: str = "image"
32
 
 
26
 
27
  class Pipeline:
28
  class Info(BaseModel):
29
+ name: str = "controlnet"
30
+ title: str = "LCM + Controlnet"
31
  description: str = "Generates an image from a text prompt"
32
  input_mode: str = "image"
33
 
pipelines/txt2img.py CHANGED
@@ -21,7 +21,7 @@ default_prompt = "Portrait of The Terminator with , glare pose, detailed, intric
21
  class Pipeline:
22
  class Info(BaseModel):
23
  name: str = "txt2img"
24
- title: str = "txt2img"
25
  description: str = "Generates an image from a text prompt"
26
  input_mode: str = "text"
27
 
 
21
  class Pipeline:
22
  class Info(BaseModel):
23
  name: str = "txt2img"
24
+ title: str = "Text-to-Image LCM"
25
  description: str = "Generates an image from a text prompt"
26
  input_mode: str = "text"
27
 
pipelines/txt2imglora.py CHANGED
@@ -21,8 +21,8 @@ default_prompt = "Analog style photograph of young Harrison Ford as Han Solo, st
21
 
22
  class Pipeline:
23
  class Info(BaseModel):
24
- name: str = "txt2imglora"
25
- title: str = "txt2imglora"
26
  description: str = "Generates an image from a text prompt"
27
  input_mode: str = "text"
28
 
 
21
 
22
  class Pipeline:
23
  class Info(BaseModel):
24
+ name: str = "controlnet"
25
+ title: str = "Text-to-Image LCM + LoRa"
26
  description: str = "Generates an image from a text prompt"
27
  input_mode: str = "text"
28