stable-diffusion-webui

Форк
0
/
sd_models_types.py 
34 строки · 1.1 Кб
1
from ldm.models.diffusion.ddpm import LatentDiffusion
2
from typing import TYPE_CHECKING
3

4

5
if TYPE_CHECKING:
6
    from modules.sd_models import CheckpointInfo
7

8

9
class WebuiSdModel(LatentDiffusion):
10
    """This class is not actually instantinated, but its fields are created and fieeld by webui"""
11

12
    lowvram: bool
13
    """True if lowvram/medvram optimizations are enabled -- see modules.lowvram for more info"""
14

15
    sd_model_hash: str
16
    """short hash, 10 first characters of SHA1 hash of the model file; may be None if --no-hashing flag is used"""
17

18
    sd_model_checkpoint: str
19
    """path to the file on disk that model weights were obtained from"""
20

21
    sd_checkpoint_info: 'CheckpointInfo'
22
    """structure with additional information about the file with model's weights"""
23

24
    is_sdxl: bool
25
    """True if the model's architecture is SDXL or SSD"""
26

27
    is_ssd: bool
28
    """True if the model is SSD"""
29

30
    is_sd2: bool
31
    """True if the model's architecture is SD 2.x"""
32

33
    is_sd1: bool
34
    """True if the model's architecture is SD 1.x"""
35

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.