Spaces:
Sleeping
Sleeping
Commit
·
a643d17
1
Parent(s):
377cd30
Commit
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ MAX_IMAGE_SIZE = 2048 # not used anymore
|
|
| 29 |
|
| 30 |
|
| 31 |
@spaces.GPU()
|
| 32 |
-
def infer(prompt, seed=42, randomize_seed=
|
| 33 |
guidance_scale=3.5, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
| 34 |
|
| 35 |
# Randomize seed if requested
|
|
@@ -94,7 +94,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 94 |
|
| 95 |
result = gr.Image(label="Result", show_label=False)
|
| 96 |
|
| 97 |
-
with gr.Accordion("Advanced Settings", open=
|
| 98 |
seed = gr.Slider(
|
| 99 |
label="Seed",
|
| 100 |
minimum=0,
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
@spaces.GPU()
|
| 32 |
+
def infer(prompt, seed=42, randomize_seed=True, aspect_ratio="4:3 landscape 1152x896", lora_weight="lora_weight_rank_32_alpha_32.safetensors",
|
| 33 |
guidance_scale=3.5, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
| 34 |
|
| 35 |
# Randomize seed if requested
|
|
|
|
| 94 |
|
| 95 |
result = gr.Image(label="Result", show_label=False)
|
| 96 |
|
| 97 |
+
with gr.Accordion("Advanced Settings", open=True):
|
| 98 |
seed = gr.Slider(
|
| 99 |
label="Seed",
|
| 100 |
minimum=0,
|
python.py
CHANGED
|
@@ -154,8 +154,8 @@ unetloader_12 = unetloader.load_unet(
|
|
| 154 |
ksamplerselect = NODE_CLASS_MAPPINGS["KSamplerSelect"]()
|
| 155 |
ksamplerselect_16 = ksamplerselect.get_sampler(sampler_name="dpmpp_2m")
|
| 156 |
|
| 157 |
-
randomnoise = NODE_CLASS_MAPPINGS["RandomNoise"]()
|
| 158 |
-
randomnoise_25 = randomnoise.get_noise(noise_seed='42')
|
| 159 |
|
| 160 |
loraloadermodelonly = NODE_CLASS_MAPPINGS["LoraLoaderModelOnly"]()
|
| 161 |
loraloadermodelonly_72 = loraloadermodelonly.load_lora_model_only(
|
|
|
|
| 154 |
ksamplerselect = NODE_CLASS_MAPPINGS["KSamplerSelect"]()
|
| 155 |
ksamplerselect_16 = ksamplerselect.get_sampler(sampler_name="dpmpp_2m")
|
| 156 |
|
| 157 |
+
# randomnoise = NODE_CLASS_MAPPINGS["RandomNoise"]()
|
| 158 |
+
# randomnoise_25 = randomnoise.get_noise(noise_seed='42')
|
| 159 |
|
| 160 |
loraloadermodelonly = NODE_CLASS_MAPPINGS["LoraLoaderModelOnly"]()
|
| 161 |
loraloadermodelonly_72 = loraloadermodelonly.load_lora_model_only(
|