Mercurial > repos > bgruening > black_forest_labs_flux
comparison flux.py @ 4:7939ae8c5fd5 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/flux commit d9ac789235499840b8965cbe5efe1d26406f5d9a
| author | bgruening |
|---|---|
| date | Mon, 02 Dec 2024 20:26:07 +0000 |
| parents | 7933bed1ffab |
| children |
comparison
equal
deleted
inserted
replaced
| 3:21ee409e6cde | 4:7939ae8c5fd5 |
|---|---|
| 10 if prompt_type == "file": | 10 if prompt_type == "file": |
| 11 with open(sys.argv[3], "r") as f: | 11 with open(sys.argv[3], "r") as f: |
| 12 prompt = f.read().strip() | 12 prompt = f.read().strip() |
| 13 elif prompt_type == "text": | 13 elif prompt_type == "text": |
| 14 prompt = sys.argv[3] | 14 prompt = sys.argv[3] |
| 15 print(f"Creating image from prompt: {prompt}") | |
| 15 | 16 |
| 16 if "dev" in model_path: | 17 if "dev" in model_path: |
| 17 num_inference_steps = 20 | 18 num_inference_steps = 20 |
| 18 elif "schnell" in model_path: | 19 elif "schnell" in model_path: |
| 19 num_inference_steps = 4 | 20 num_inference_steps = 4 |
