shichen1231 commited on
Commit
c74fa4c
Β·
1 Parent(s): 9f9752e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -31,8 +31,8 @@ def infer(
31
  ill=0.6,
32
  ):
33
 
34
- conditioning_image = Image.fromarray(conditioning_image)
35
- # conditioning_image = conditioning_image_raw.convert('L')
36
  g_cpu = torch.Generator()
37
 
38
  if seed == -1:
@@ -53,7 +53,8 @@ def infer(
53
 
54
  ).images[0]
55
 
56
- del conditioning_image, conditioning_image_raw,seg_image
 
57
  gc.collect()
58
 
59
  return output_image
 
31
  ill=0.6,
32
  ):
33
 
34
+ conditioning_image_raw = Image.fromarray(conditioning_image)
35
+ conditioning_image = conditioning_image_raw.convert('L')
36
  g_cpu = torch.Generator()
37
 
38
  if seed == -1:
 
53
 
54
  ).images[0]
55
 
56
+ del conditioning_image, conditioning_image_raw
57
+
58
  gc.collect()
59
 
60
  return output_image