fountai commited on
Commit
f9f60e5
1 Parent(s): 657df15

randomize seed

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -121,10 +121,10 @@ def execute(image, prompt, debug=False):
121
  #pipe.load_lora_weights("XLabs-AI/flux-RealismLora", weight_name='lora.safetensors')
122
  response = []
123
 
124
- seed_slicer = random.randint(0, MAX_SEED)
125
- generator = torch.Generator().manual_seed(seed_slicer)
126
-
127
  for image in range(len(imgs)):
 
 
 
128
  current_img = imgs[image]
129
  cv2.imwrite('base_image.jpg', current_img)
130
  cv2.imwrite("mask.jpg", maskHead('base_image.jpg'))
 
121
  #pipe.load_lora_weights("XLabs-AI/flux-RealismLora", weight_name='lora.safetensors')
122
  response = []
123
 
 
 
 
124
  for image in range(len(imgs)):
125
+ seed_slicer = random.randint(0, MAX_SEED)
126
+ generator = torch.Generator().manual_seed(seed_slicer)
127
+
128
  current_img = imgs[image]
129
  cv2.imwrite('base_image.jpg', current_img)
130
  cv2.imwrite("mask.jpg", maskHead('base_image.jpg'))