File size: 524 Bytes
8ed2153
 
 
 
 
 
6cfa606
 
8ed2153
 
 
 
 
 
 
 
 
 
 
9c77b03
9d5ecbc
8ed2153
6cfa606
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from dataclasses import dataclass


import os
import sys

import numpy as np

weights_path = os.path.join(sys.path[0], 'weights')


@dataclass
class PipelineConfig:
    """Fashion Controlnet Pipeline Config."""

    base_model_path: str = 'stabilityai/stable-diffusion-xl-base-1.0'

    vae_path: str = 'madebyollin/sdxl-vae-fp16-fix'

    controlnet_path: str = os.path.join(weights_path, 'controlnet')

    segmentation_model_path: str = os.path.join(weights_path, 'cloth_segm.pth')

    max_seed = np.iinfo(np.int32).max