Views
No views yet
1import torch
2from diffusers import AutoPipelineForText2Image
3
4pipe = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to("cuda")
5
6pipe.load_lora_weights(".", weight_name="ethereal-dark.safetensors", adapter_name="ethereal-dark")
7pipe.load_lora_weights(".", weight_name="mythic-fantasy.safetensors", adapter_name="mythic-fantasy")
8pipe.load_lora_weights(".", weight_name="mj-whisper.safetensors", adapter_name="mj-whisper")
9pipe.load_lora_weights(".", weight_name="elden-ring.safetensors", adapter_name="elden-ring")
10pipe.load_lora_weights(".", weight_name="retro-anime.safetensors", adapter_name="retro-anime")
11pipe.set_adapters(["ethereal-dark", "mythic-fantasy", "mj-whisper", "elden-ring", "retro-anime"], adapter_weights=[0.3, 0.9, 0.5, 0.25, 0.6])
12pipe.fuse_lora(adapter_names=["ethereal-dark", "mythic-fantasy", "mj-whisper", "elden-ring", "retro-anime"], lora_scale=1.0)
13
14pipe.unload_lora_weights()
15
16pipe.push_to_hub("minpeter/FLUX-Hyperscale-fused")| Model | Link |
|---|---|
| FLUX.1-dev | black-forest-labs/FLUX.1-dev |
| Ethereal Dark (v1.0) | ethereal-dark.safetensors |
| Mythic Fantasy (Flux Anime Lines) | mythic-fantasy.safetensors |
| MJ Whisper (v01) | mj-whisper.safetensors |
| Elden Ring (V1) | elden-ring.safetensors |
| Retro Anime (v1.0) | retro-anime.safetensors |
1import torch
2from diffusers import AutoPipelineForText2Image
3
4pipe = AutoPipelineForText2Image.from_pretrained("minpeter/FLUX-Hyperscale-fused", torch_dtype=torch.bfloat16).to("cuda")
5
6prompt = "orange tabby cat, curled up asleep, peaceful expression, lying in a warm patch of sunlight, on a cozy living room rug, warm lighting, soft focus background"
7
8image = pipe(
9 prompt=prompt,
10 guidance_scale=3.5,
11 height=1024,
12 width=1024,
13 num_inference_steps=30,
14).images[0]
15
16image.save("s2.png")