taki0112 commited on
Commit
406a690
1 Parent(s): 9d41154
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,7 +30,7 @@ def memory_efficient(model):
30
  model.enable_vae_slicing()
31
  except AttributeError:
32
  print("enable_vae_slicing is not supported.")
33
-
34
  # if device == 'cuda':
35
  # try:
36
  # model.enable_xformers_memory_efficient_attention()
@@ -202,8 +202,8 @@ def style_fn(image_path, style_name, content_text, output_number=1, diffusion_st
202
  )[0][1:]
203
 
204
  n_row = 1
205
- n_col = len(inf_seeds) + 1 # 원본추가하려면 + 1
206
-
207
  # make grid
208
  grid = create_image_grid(images, n_row, n_col, padding=10)
209
 
 
30
  model.enable_vae_slicing()
31
  except AttributeError:
32
  print("enable_vae_slicing is not supported.")
33
+
34
  # if device == 'cuda':
35
  # try:
36
  # model.enable_xformers_memory_efficient_attention()
 
202
  )[0][1:]
203
 
204
  n_row = 1
205
+ n_col = len(inf_seeds)
206
+
207
  # make grid
208
  grid = create_image_grid(images, n_row, n_col, padding=10)
209