lzyhha commited on
Commit
ccc05b7
·
1 Parent(s): 0d1683b
Files changed (2) hide show
  1. app.py +1 -1
  2. visualcloze.py +1 -0
app.py CHANGED
@@ -455,7 +455,7 @@ def create_demo(model):
455
  return demo
456
 
457
 
458
- @spaces.GPU
459
  def generate(
460
  images,
461
  prompts,
 
455
  return demo
456
 
457
 
458
+ @spaces.GPU(duration=180)
459
  def generate(
460
  images,
461
  prompts,
visualcloze.py CHANGED
@@ -144,6 +144,7 @@ class VisualClozeModel:
144
  self.grid_h = h
145
  self.grid_w = w
146
 
 
147
  def upsampling(self, image, target_size, cfg, upsampling_steps, upsampling_noise, generator, content_prompt):
148
  content_instruction = [
149
  "The content of the last image in the final row is: ",
 
144
  self.grid_h = h
145
  self.grid_w = w
146
 
147
+ @torch.no_grad
148
  def upsampling(self, image, target_size, cfg, upsampling_steps, upsampling_noise, generator, content_prompt):
149
  content_instruction = [
150
  "The content of the last image in the final row is: ",