Spaces:
Running
on
Zero
Running
on
Zero
Better for auto-tune?
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ from optimization import optimize_pipeline_
|
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
19 |
|
20 |
pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16).to("cuda")
|
21 |
-
optimize_pipeline_(pipe, image=
|
22 |
|
23 |
@spaces.GPU
|
24 |
def infer(input_image, prompt, seed=42, randomize_seed=False, guidance_scale=2.5, steps=28, progress=gr.Progress(track_tqdm=True)):
|
|
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
19 |
|
20 |
pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16).to("cuda")
|
21 |
+
optimize_pipeline_(pipe, image=Image.new("RGB", (512, 512)), prompt='prompt')
|
22 |
|
23 |
@spaces.GPU
|
24 |
def infer(input_image, prompt, seed=42, randomize_seed=False, guidance_scale=2.5, steps=28, progress=gr.Progress(track_tqdm=True)):
|