File size: 457 Bytes
42ae52a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# modules/pipelines/flux_pipelines.py

import torch
from diffusers import AutoPipelineForText2Image, AutoencoderKL

def load_flux():
    # Load FLUX models and pipelines
    # ...
    return device, models, flux_vae, controlnet

# modules/pipelines/sdxl_pipelines.py

import torch
from diffusers import AutoPipelineForText2Image, AutoencoderKL

def load_sdxl():
    # Load SDXL models and pipelines
    # ...
    return device, models, sdxl_vae, controlnet