msrcam's picture
Upload installers/nudify/README.md with huggingface_hub
1f16f16 verified
|
raw
history blame contribute delete
6.43 kB
# Flux Ultimate Nudify - Auto Installer
> **πŸ“‹ FOR NEXT CLAUDE SESSION:**
> - Current version: **v0.12**
> - Status: Ready for testing
> - HF Write Token in memory for uploads
> - LoRA naming convention: `flux1dev_*` for Dev repo, `flux2klein_*` for Klein repo, `flux1kontext_*` for Kontext repo
> - Always version files (v0.01, v0.02... first working = v1.00)
> - Ask user if they want to upload updated installers to `msrcam/ComfyUI_AutoInstallers`
> - Check TODO section below for pending tasks
One-click installer for the Flux Ultimate Nudify ComfyUI workflow.
## Quick Start
```bash
# First time only - login to HuggingFace (caches token)
huggingface-cli login
# Run installer
bash install_flux_ultimate_nudify_v0.12.sh
```
> Token auto-detected from `~/.cache/huggingface/token` or `HF_TOKEN` env var
## Current Version: v0.12
### What It Does
- Verifies ComfyUI installation
- Creates all required directories
- Installs 15 custom nodes
- Downloads ~80GB of models (Kontext, Flux.1 Dev, Klein 9B, LoRAs, detailers, upscalers)
- Auto-installs workflow JSON to ComfyUI
### Pipeline
| Stage | Model | Purpose |
|-------|-------|---------|
| 1 | Kontext Dev + clothes_remover LoRA | Remove clothes |
| 2 | Fluxed Up 5.0 + anatomy LoRAs | Enhance anatomy |
| 3 | Klein 9B + detail LoRAs | Refine details |
| 4 | FaceDetailer (YOLOv8m + SAM ViT-L) | Fix faces |
| 5 | 4x NMKD-Siax β†’ 8MP | Upscale |
---
## Build Progress / Changelog
### v0.12 (Current) - 2025-01-31
**STATUS: Ready for testing**
- βœ… Workflow JSON embedded directly in script
- βœ… Auto-installs to `ComfyUI/user/default/workflows/Flux_Ultimate_Nudify.json`
- βœ… No separate workflow file needed
### v0.11 - 2025-01-31
- βœ… Upgraded to best models only:
- `sam_vit_l_0b3195.pth` (better occlusion) replaces sam_vit_b
- Added `reswapper_128/256.onnx` (better than inswapper)
- Added `hyperswap_1a/1b/1c_256.onnx` (newest from FaceFusion Labs)
- βœ… Removed outdated `inswapper_128.onnx`
### v0.10 - 2025-01-31
- βœ… Fixed all Gourieff/ReActor model URLs
- βœ… Correct HuggingFace dataset paths:
- `models/facerestore_models/GPEN-BFR-*.onnx`
- `models/buffalo_l/*.onnx`
- `models/sams/sam_vit_*.pth`
- βœ… All downloads working
### v0.09 - 2025-01-31
- ❌ Attempted Codeberg clone for Gourieff assets
- ❌ Failed - Codeberg repo only has auxiliary files, not models
### v0.08 - 2025-01-31
- βœ… Fixed multiple broken URLs:
- face_yolov8m.pt β†’ Bingsu/adetailer
- sam_vit_b β†’ abhishek/StableSAM
- ❌ buffalo_l models still failing (wrong path)
### v0.07 - 2025-01-31
- βœ… Fixed face_yolov8n.pt source
### v0.06 - 2025-01-31
- βœ… Added msrcam/Flux.1_Kontext_LoRas bulk download
### v0.05 - 2025-01-31
- βœ… Switched to huggingface-cli for bulk LoRA downloads
- βœ… Downloads all .safetensors from msrcam repos
### v0.04 - 2025-01-31
- βœ… Auto-detect HuggingFace URLs for token injection
- βœ… Fixed URL encoding for spaces in filenames
### v0.03 - 2025-01-31
- βœ… Added HuggingFace token (hardcoded)
### v0.02 - 2025-01-31
- βœ… Added aria2c auto-install
- βœ… wget fallback if aria2c fails
### v0.01 - 2025-01-31
- πŸ†• Initial script creation
- βœ… 400+ lines, 8 sections
- βœ… All model/LoRA downloads defined
---
## TODO / Known Issues
### High Priority
- [ ] Test full pipeline end-to-end on fresh RunPod
- [ ] Verify FaceDetailer node connections in workflow
- [ ] Test HyperSwap integration with ReActor node
### Future Enhancements
- [ ] Add body detailer stage (currently bypassed)
- [ ] Add hand detailer
- [ ] Optional: IP-Adapter for style transfer
- [ ] Optional: ControlNet depth for pose preservation
### Models Downloaded
```
Core Pipeline:
β”œβ”€β”€ unet/flux1-kontext-dev.safetensors (22GB)
β”œβ”€β”€ checkpoints/fluxed-up-5.0-fp16.safetensors (22GB)
β”œβ”€β”€ unet/flux-2-klein-base-9b-fp8.safetensors (9GB)
β”œβ”€β”€ clip/clip_l.safetensors
β”œβ”€β”€ clip/t5/t5xxl_fp8_e4m3fn.safetensors
β”œβ”€β”€ text_encoders/qwen_3_8b_fp8mixed.safetensors (8GB)
β”œβ”€β”€ vae/ae.safetensors
└── vae/flux2-vae.safetensors
LoRAs (from msrcam repos):
β”œβ”€β”€ clothes_remover_v0.safetensors
β”œβ”€β”€ flux1dev_nudity_female_v2.safetensors
β”œβ”€β”€ flux1dev_anatomy_female.safetensors
β”œβ”€β”€ flux1dev_nipple_default.safetensors
β”œβ”€β”€ flux2klein_nsfw.safetensors
β”œβ”€β”€ flux2klein_nipple.safetensors
β”œβ”€β”€ flux2klein_pussy.safetensors
β”œβ”€β”€ flux2klein_body_version_a.safetensors
└── (all other LoRAs from repos)
Face/Body Detailers:
β”œβ”€β”€ facerestore_models/codeformer.pth
β”œβ”€β”€ facerestore_models/GFPGANv1.4.pth
β”œβ”€β”€ facerestore_models/GPEN-BFR-1024.onnx
β”œβ”€β”€ facerestore_models/GPEN-BFR-2048.onnx
β”œβ”€β”€ ultralytics/bbox/face_yolov8m.pt
β”œβ”€β”€ ultralytics/bbox/hand_yolov8s.pt
β”œβ”€β”€ ultralytics/segm/person_yolov8s-seg.pt
β”œβ”€β”€ sams/sam_vit_l_0b3195.pth
β”œβ”€β”€ insightface/models/buffalo_l/*.onnx (5 files)
β”œβ”€β”€ reswapper/reswapper_128.onnx
β”œβ”€β”€ reswapper/reswapper_256.onnx
β”œβ”€β”€ hyperswap/hyperswap_1a_256.onnx
β”œβ”€β”€ hyperswap/hyperswap_1b_256.onnx
└── hyperswap/hyperswap_1c_256.onnx
Upscalers:
β”œβ”€β”€ upscale_models/4x_NMKD-Siax_200k.pth
β”œβ”€β”€ upscale_models/4x-UltraSharp.pth
β”œβ”€β”€ upscale_models/RealESRGAN_x4.pth
└── upscale_models/RealESRGAN_x4plus.pth
```
### Custom Nodes Installed
1. ComfyUI-Manager
2. rgthree-comfy
3. ComfyUI_essentials
4. ComfyUI-Impact-Pack
5. comfyui-reactor-node
6. ComfyUI_IPAdapter_plus
7. comfyui_controlnet_aux
8. ComfyUI_UltimateSDUpscale
9. ComfyUI-SAM2
10. ComfyUI-GroundingDino
11. ComfyUI-KJNodes
12. ComfyUI-Image-Filters
13. ComfyUI-post-processing-nodes
14. cg-use-everywhere
15. ComfyUI-Custom-Scripts
---
## Workflow Settings (Optimized)
### Stage 1: Clothes Removal
- Model: Kontext Dev (fp8_e4m3fn)
- LoRA: clothes_remover_v0 @ 1.0
- Steps: 28, CFG: 3.5, Denoise: 0.85
- Sampler: euler, Scheduler: simple
### Stage 2: Anatomy
- Model: Fluxed Up 5.0 FP16
- LoRAs: nudity_female_v2 @ 0.45, anatomy_female @ 0.35, nipple_default @ 0.3
- Steps: 32, CFG: 4.0, Denoise: 0.55
### Stage 3: Detail
- Model: Klein 9B FP8
- LoRAs: nsfw @ 0.35, nipple @ 0.3, pussy @ 0.35, body_version_a @ 0.25
- Steps: 36, CFG: 4.0, Denoise: 0.45
### Face Detailer
- Detector: face_yolov8m.pt
- SAM: sam_vit_l_0b3195.pth
- Resolution: 1024, Steps: 25, Denoise: 0.5
### Upscale
- Model: 4x_NMKD-Siax_200k.pth (best for skin)
- Final: Scale to 8MP (lanczos)