详情
推薦
v1.0
Age Sliders - FLUX-1.D LoRA

Age Sliders - FLUX-1.D LoRA

10.1K
42
199
#角色
#FLUX

This model is based on the Concept sliders LoRA model trained by FLUX.1D, so that the characters in the generated pictures gradually grow from young to old.

weight: -5.0 to 5.0 (Not limited to this interval, you can try other ranges.)

    target_prompt: "male person"
    positive_prompt: "male person, very old"
    negative_prompt: "male person, very young"

Code used for training: https://github.com/SWHL/flux-sliders

Use this model:

from datetime import datetime
from pathlib import Path

import torch
from diffusers import FluxPipeline

lora_path = "flux-age_sliders_latest.safetensors"
pipe = FluxPipeline.from_pretrained("models/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.to("cuda")
pipe.load_lora_weights(lora_path)

time_stamp = datetime.strftime(datetime.now(), "%Y-%m-%d-%H-%M-%S")
save_dir = Path("outputs") / time_stamp
save_dir.mkdir(parents=True, exist_ok=True)

scales = (-5, -2.5, 0, 2.5, 5)
prompt = "male person"

for scale in scales:
    out = pipe(
        prompt=prompt,
        guidance_scale=3.5,
        height=512,
        width=512,
        num_inference_steps=25,
        joint_attention_kwargs={"scale": scale * 1 / 16},
        generator=torch.Generator().manual_seed(42),
    ).images[0]

    save_img_path = save_dir / f"{time_stamp}_scale_{scale}.jpg"
    out.save(save_img_path)

Enjoy it!

⚠️ Notion:

  • The current model does not support direct use of comfy.

  • Since the model has been converted, you need to try the slider scale multiple times to select the range you need.

  • ComfyUI will be supported later, so stay tuned.

查看译文

評分與評論

-- /5
0 個評分

尚未收到足夠的評分或評論

no-data
暫無數據
S
SWHL
0
69
與模型對話
公告
2025-02-11
发布模型
2025-02-11
更新模型資訊
模型详情
類型
LORA
发布時間
2025-02-11
基础模型
Flux.1 D
许可范围
來源: civitai

1. 轉载模型僅供學習與交流分享,其版權及最終解释權归原作者。

2. 模型原作者如需認領模型,請通過官方渠道联系海藝AI工作人員進行認證。我們致力於保護每一位創作者的權益。 點擊去認領

創作许可范围
在線生圖
進行融合
允许下载
商業许可范围
生成圖片可出售或用於商業目的
允许模型轉售或融合后出售
QR Code
下載SeaArt App
在移動端继續你的AI創作之旅