Alexander Bagus commited on
Commit
f13eb4d
·
1 Parent(s): a316f4d
Files changed (2) hide show
  1. app.py +2 -1
  2. requirements.txt +2 -1
app.py CHANGED
@@ -121,7 +121,8 @@ def inference(
121
 
122
  print("DEBUG: processor running")
123
  control_image = processor(control_image, to_pil=True)
124
-
 
125
  print("DEBUG: control_image_torch")
126
  control_image_torch = get_image_latent(control_image, sample_size=[height, width])[:, :, 0]
127
 
 
121
 
122
  print("DEBUG: processor running")
123
  control_image = processor(control_image, to_pil=True)
124
+ control_image = control_image.resize((width, height))
125
+
126
  print("DEBUG: control_image_torch")
127
  control_image_torch = get_image_latent(control_image, sample_size=[height, width])[:, :, 0]
128
 
requirements.txt CHANGED
@@ -5,4 +5,5 @@ accelerate
5
  spaces
6
  git+https://github.com/huggingface/diffusers.git
7
  kernels
8
- controlnet-aux
 
 
5
  spaces
6
  git+https://github.com/huggingface/diffusers.git
7
  kernels
8
+ controlnet-aux
9
+ matplotlib