Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 3.21 KB

README.md

File metadata and controls

70 lines (55 loc) · 3.21 KB

Prepare Environment

# Step1: Enter to res-adapter directory
cd res-adapter

# Step2: Install dependency
pip install -r requirements.txt

# Step3: Download diffusion models, and make the directory structure as follows:
models
├── res_adapter
│   ├── ...
├── diffusion_models
│   ├── ...
├── controlnet
│   ├── ...
├── ip_adapter
│   ├── ...
└── lcm-lora
    └──  ...

Download

You only download models that you need for specific tasks. Here is an example:

  • For text to image, you should download resadapter and personalized diffusion model.
  • For controlnet task, you should download resadapter, controlnet and base diffusion model.
  • For ip-adapter task, you should download resadapter, controlnet and base diffusion model.
  • For lcm-lora task, you should download resadapter, lcm-lora and personalized diffusion model.

ResAdapter

Models Parameters Resolution Range Ratio Range Links
resadapter_v1_sd1.5 0.9M 128 <= x <= 1024 0.25 <= r <= 4 Download
resadapter_v1_sd1.5_extrapolation 0.9M 512 <= x <= 1024 0.25 <= r <= 4 Download
resadapter_v1_sd1.5_interpolation 0.8M 128 <= x <= 512 0.25 <= r <= 4 Download
resadapter_v1_sdxl 0.5M 256 <= x <= 1536 0.25 <= r <= 4 Download
resadapter_v1_sdxl_extrapolation 0.5M 1024 <= x <= 1536 0.25 <= r <= 4 Download
resadapter_v1_sdxl_interpolation 0.4M 256 <= x <= 1024 0.25 <= r <= 4 Download

Diffusion Models

We provide some personalized models for sampling style images with ResAdapter. More personalized models can be found in CivitAI.

Models Structure Type Domain Type Links
Base model
SDv1.5 - General Download
SDXL1.0 - General Download
Personalized model
RealisticVision SDv1.5 Realism Download
Dreamlike SDv1.5 Fantasy Download
DreamshaperXL SDXL 2.5D Download
...

ControlNet, IP-Adapter and LCM-LoRA

Modules Name Type Links
ControlNet lllyasviel/sd-controlnet-canny SD1.5 Download
ControlNet diffusers/controlnet-canny-sdxl-1.0 SDXL Download
IP-Adapter h94/IP-Adapter SD1.5/SDXL Download
LCM-LoRA latent-consistency/lcm-lora-sdv1-5 SD1.5 Download
LCM-LoRA latent-consistency/lcm-lora-sdxl SDXL Download