Spaces:
Runtime error
Runtime error
randomize seed
Browse files
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'))
|