Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
core/pipelines/sd_image_pipeline.py
CHANGED
|
@@ -358,6 +358,9 @@ class SdImagePipeline(BasePipeline):
|
|
| 358 |
|
| 359 |
progress(0.8, desc="Assembling workflow...")
|
| 360 |
|
|
|
|
|
|
|
|
|
|
| 361 |
dynamic_values = {'task_type': ui_inputs['task_type'], 'model_type': "sdxl"}
|
| 362 |
|
| 363 |
recipe_path = os.path.join(os.path.dirname(__file__), "workflow_recipes", "sd_unified_recipe.yaml")
|
|
|
|
| 358 |
|
| 359 |
progress(0.8, desc="Assembling workflow...")
|
| 360 |
|
| 361 |
+
if ui_inputs.get('seed') == -1:
|
| 362 |
+
ui_inputs['seed'] = random.randint(0, 2**32 - 1)
|
| 363 |
+
|
| 364 |
dynamic_values = {'task_type': ui_inputs['task_type'], 'model_type': "sdxl"}
|
| 365 |
|
| 366 |
recipe_path = os.path.join(os.path.dirname(__file__), "workflow_recipes", "sd_unified_recipe.yaml")
|