File size: 614 Bytes
84448a9
 
06d6d46
 
efa09bd
8ae4526
f521e88
 
 
7a1ec93
21e6a9b
efa09bd
f521e88
06d6d46
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os

import numpy as np

DEFAULT_MODEL_ID = os.getenv("DEFAULT_MODEL_ID", "SG161222/Realistic_Vision_V4.0_noVAE")

MAX_NUM_IMAGES = int(os.getenv("MAX_NUM_IMAGES", "3"))
DEFAULT_NUM_IMAGES = min(MAX_NUM_IMAGES, int(os.getenv("DEFAULT_NUM_IMAGES", "3")))
MAX_IMAGE_RESOLUTION = int(os.getenv("MAX_IMAGE_RESOLUTION", "768"))
DEFAULT_IMAGE_RESOLUTION = min(MAX_IMAGE_RESOLUTION, int(os.getenv("DEFAULT_IMAGE_RESOLUTION", "512")))

ALLOW_CHANGING_BASE_MODEL = os.getenv("SPACE_ID") != "HighCWu/control-lora-v3"
SHOW_DUPLICATE_BUTTON = os.getenv("SHOW_DUPLICATE_BUTTON") == "1"

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