Jon Taylor commited on
Commit
1a7b0d4
1 Parent(s): effcc86

revert to 480P

Browse files
Files changed (2) hide show
  1. app/bot.py +2 -2
  2. app/pipeline.py +4 -4
app/bot.py CHANGED
@@ -88,8 +88,8 @@ class DailyVision(EventHandler):
88
  def setup_camera(self):
89
  if not self.__camera:
90
  self.__camera = Daily.create_camera_device("camera",
91
- width = 512,
92
- height = 512,
93
  color_format="RGB")
94
  self.__client.update_inputs({
95
  "camera": {
 
88
  def setup_camera(self):
89
  if not self.__camera:
90
  self.__camera = Daily.create_camera_device("camera",
91
+ width = 640,
92
+ height = 480,
93
  color_format="RGB")
94
  self.__client.update_inputs({
95
  "camera": {
app/pipeline.py CHANGED
@@ -58,10 +58,10 @@ class Pipeline:
58
  1, min=1, max=15, title="Steps", field="range", hide=True, id="steps"
59
  )
60
  width: int = Field(
61
- 512, min=2, max=15, title="Width", disabled=True, hide=True, id="width"
62
  )
63
  height: int = Field(
64
- 512, min=2, max=15, title="Height", disabled=True, hide=True, id="height"
65
  )
66
  guidance_scale: float = Field(
67
  1.0,
@@ -188,8 +188,8 @@ class Pipeline:
188
 
189
  self.pipe(
190
  prompt="warmup",
191
- image=[Image.new("RGB", (768, 768))],
192
- control_image=[Image.new("RGB", (768, 768))],
193
  )
194
 
195
  def predict(self, params: "Pipeline.InputParams", image) -> Image.Image:
 
58
  1, min=1, max=15, title="Steps", field="range", hide=True, id="steps"
59
  )
60
  width: int = Field(
61
+ 640, min=2, max=15, title="Width", disabled=True, hide=True, id="width"
62
  )
63
  height: int = Field(
64
+ 480, min=2, max=15, title="Height", disabled=True, hide=True, id="height"
65
  )
66
  guidance_scale: float = Field(
67
  1.0,
 
188
 
189
  self.pipe(
190
  prompt="warmup",
191
+ image=[Image.new("RGB", (640, 480))],
192
+ control_image=[Image.new("RGB", (640, 480))],
193
  )
194
 
195
  def predict(self, params: "Pipeline.InputParams", image) -> Image.Image: