fastSD / backend /models /gen_images.py
thejagstudio's picture
Upload 61 files
510ee71 verified
raw
history blame
364 Bytes
from pydantic import BaseModel
from enum import Enum, auto
from paths import FastStableDiffusionPaths
class ImageFormat(str, Enum):
"""Image format"""
JPEG = "jpeg"
PNG = "png"
class GeneratedImages(BaseModel):
path: str = FastStableDiffusionPaths.get_results_path()
format: str = ImageFormat.PNG.value.upper()
save_image: bool = True