Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ pipe.load_lora_weights(lora_ghibli, adapter_name='ghibli')
|
|
23 |
lora_repo_anime = "aleksa-codes/flux-ghibsky-illustration"
|
24 |
pipe.load_lora_weights(lora_repo_anime, adapter_name='ghibsky')
|
25 |
|
26 |
-
pipe.set_adapters(["kaytoo", "ghibli", "ghibsky"], adapter_weights=[0.
|
27 |
|
28 |
pipe.to("cuda")
|
29 |
|
@@ -36,7 +36,7 @@ def run_lora(prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora
|
|
36 |
seed = random.randint(0, MAX_SEED)
|
37 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
38 |
|
39 |
-
pipe.set_adapters(["kaytoo", "ghibli", "ghibsky"], adapter_weights=[lora_scale,
|
40 |
|
41 |
# Update progress bar (0% saat mulai)
|
42 |
progress(0, "Starting image generation...")
|
@@ -71,9 +71,9 @@ example_steps = 32
|
|
71 |
example_width = 1152
|
72 |
example_height = 896
|
73 |
example_seed = 3981632454
|
74 |
-
example_lora_scale = 0.
|
75 |
-
example_lora_scale_ghibli = 0.
|
76 |
-
example_lora_scale_ghibsky = 0.
|
77 |
|
78 |
def load_example():
|
79 |
# Load example image from file
|
|
|
23 |
lora_repo_anime = "aleksa-codes/flux-ghibsky-illustration"
|
24 |
pipe.load_lora_weights(lora_repo_anime, adapter_name='ghibsky')
|
25 |
|
26 |
+
pipe.set_adapters(["kaytoo", "ghibli", "ghibsky"], adapter_weights=[0.7, 0.3, 0.3])
|
27 |
|
28 |
pipe.to("cuda")
|
29 |
|
|
|
36 |
seed = random.randint(0, MAX_SEED)
|
37 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
38 |
|
39 |
+
pipe.set_adapters(["kaytoo", "ghibli", "ghibsky"], adapter_weights=[lora_scale, lora_scale_ghibli, lora_scale_ghibsky])
|
40 |
|
41 |
# Update progress bar (0% saat mulai)
|
42 |
progress(0, "Starting image generation...")
|
|
|
71 |
example_width = 1152
|
72 |
example_height = 896
|
73 |
example_seed = 3981632454
|
74 |
+
example_lora_scale = 0.8
|
75 |
+
example_lora_scale_ghibli = 0.3
|
76 |
+
example_lora_scale_ghibsky = 0.3
|
77 |
|
78 |
def load_example():
|
79 |
# Load example image from file
|