shichen1231 commited on
Commit
892985e
Β·
1 Parent(s): 76f2471

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def infer(
35
  conditioning_image = conditioning_image_raw.convert('L')
36
  w = conditioning_image.width
37
  h = conditioning_image.height
38
- ratio = 768 / max(W, H)
39
  w = int(W * ratio)
40
  h = int(H * ratio)
41
  g_cpu = torch.Generator()
 
35
  conditioning_image = conditioning_image_raw.convert('L')
36
  w = conditioning_image.width
37
  h = conditioning_image.height
38
+ ratio = 768 / max(w, h)
39
  w = int(W * ratio)
40
  h = int(H * ratio)
41
  g_cpu = torch.Generator()