Extensions/ComfyUI_LucidNFT
ComfyUI Extension

ComfyUI_LucidNFT

LR-Anchored Multi-Reward Preference Optimization for Generative Real-World Super-Resolution

By smthemex·Created 8 months ago·Updated 21 days ago· 21
smthemex/ComfyUI_LucidNFT
Nodes11
On cloudLocal install
CategoryLucidNFT
Stars21
Updated21 days ago
Readme

ComfyUI_LucidNFT

LucidNFT:LR-Anchored Multi-Reward Preference Optimization for Generative Real-World Super-Resolution

Update

  • 改成comfyUI的核心封装,提升推理速度/内存占用/changed to comfyUI core wrapper to improve inference speed/memory usage
  • 记得给官方LucidNFT点星; Remember to give the official LucidNFT a star

1. 安装

custom_nodes/ 下:

git clone https://github.com/smthemex/ComfyUI_LucidNFT

2. 权重

ComfyUI/models/
├── diffusion_models/flux1-dev-fp8.safetensors        # 任意标准 flux DiT(推荐 fp8)
├── vae/UltraFlux.safetensors                        # 可选:出 2K 时用(F16 /16)
├── lora/LucidNFT_lora_dit.safetensors  
├── clip_vision/siglip2-so400m-patch16-512.safetensors  # 建议改个名,否则都叫 model.safetensors
└── LucidFlux/                                       # 与 ComfyUI_LucidFlux 共用同一目录
    ├── general_swinir_v1.ckpt                       # DiffBIR 先验
    ├── lucidflux.pth                                # 双条件分支(condition_lq/ldr + modulation)
    ├── prompt_embeddings.pt                         # 官方预计算文本 embedding(txt 512×4096 + vec 768)
    ├── lucid_connector.pth                          # SigLIP→4096 的 Redux 映射(也可直接给 lucidflux.pth)
    └── lora_condition/{adapter_config.json, adapter_model.safetensors}  # LucidNFT 的条件分支 LoRA(PEFT 原始格式)

转换后(跑一次 tools/convert_dit_lora.py 得到,见第 3 节):
models/loras/LucidNFT_lora_dit.safetensors   # lora_dit 转成的标准 comfy LoRA

下载:lucidflux.pth / prompt_embeddings.pt → W2GenAI/LucidFlux; lora_condition → W2GenAI/LucidNFT; lora_dit → smthemex/UltraFlux-v1-gguf(转化后的comfyUI lora); SigLIP → google/siglip2-so400m-patch16-512(只下单体模型); SwinIR → lxq007/DiffBIR 的 general_swinir_v1.ckpt; connector → smthem/LucidFLUX-connector。

3 .Example

4. Citation

@article{fei2026lucidnft,
  title={LucidNFT: LR-Anchored Multi-Reward Preference Optimization for Generative Real-World Super-Resolution},
  author={Fei, Song and Ye, Tian and Chen, Sixiang and Xing, Zhaohu and Lai, Jianyu and Zhu, Lei},
  journal={arXiv preprint arXiv:2603.05947},
  year={2026}
}

原项目:W2GenAI-Lab/LucidNFT — 觉得有用请给官方点星。