Jon Taylor commited on
Commit
2bca5f7
1 Parent(s): 99ee828

increased fps to 30fps

Browse files
Files changed (3) hide show
  1. app/bot.py +1 -1
  2. app/pipeline.py +2 -2
  3. env.example +2 -1
app/bot.py CHANGED
@@ -127,7 +127,7 @@ class DailyVision(EventHandler):
127
 
128
  def on_video_frame(self, participant_id, video_frame):
129
  # Process ~15 frames per second (considering incoming frames at 30fps).
130
- if time.time() - self.__time > 0.05:
131
  self.__time = time.time()
132
  self.__image_buffer = video_frame
133
  #self.__queue.put(video_frame)
 
127
 
128
  def on_video_frame(self, participant_id, video_frame):
129
  # Process ~15 frames per second (considering incoming frames at 30fps).
130
+ if time.time() - self.__time > float(os.getenv("FPS_CAP", 0.0333)):
131
  self.__time = time.time()
132
  self.__image_buffer = video_frame
133
  #self.__queue.put(video_frame)
app/pipeline.py CHANGED
@@ -27,8 +27,8 @@ taesd_model = "madebyollin/taesd"
27
  controlnet_model = "thibaud/controlnet-sd21-canny-diffusers"
28
  base_model = "stabilityai/sd-turbo"
29
 
30
- default_prompt = "Portrait of The Joker halloween costume, face painting, with , glare pose, detailed, intricate, full of colour, cinematic lighting, trending on artstation, 8k, hyperrealistic, focused, extreme details, unreal engine 5 cinematic, masterpiece"
31
- default_negative_prompt = "blurry, low quality, render, 3D, oversaturated"
32
 
33
  class Pipeline:
34
  class Info(BaseModel):
 
27
  controlnet_model = "thibaud/controlnet-sd21-canny-diffusers"
28
  base_model = "stabilityai/sd-turbo"
29
 
30
+ default_prompt = "(Portrait of Cat), (wearing a tuxedo), (big ears), cute anime eyes, detailed, intricate, full of colour, cinematic lighting, trending on artstation, 8k, hyperrealistic, focused, extreme details, unreal engine 5 cinematic, masterpiece"
31
+ default_negative_prompt = "blurry, low quality, render, 3D, oversaturated, horror, zombie"
32
 
33
  class Pipeline:
34
  class Info(BaseModel):
env.example CHANGED
@@ -5,4 +5,5 @@ BOT_MAX_DURATION=300
5
  SAFETY_CHECKER=1
6
  TORCH_COMPILE=1
7
  USE_TAESD=1
8
- BOT_WILL_IDLE=1
 
 
5
  SAFETY_CHECKER=1
6
  TORCH_COMPILE=1
7
  USE_TAESD=1
8
+ BOT_WILL_IDLE=1
9
+ FPS_CAP=