Merge pull request #2 from XmYx/main
Browse files
util.py
CHANGED
@@ -8,7 +8,12 @@ from modules.conditioner import HFEmbedder
|
|
8 |
from modules.flux_model import Flux, FluxParams
|
9 |
from modules.flux_model_f8 import Flux as FluxF8
|
10 |
from safetensors.torch import load_file as load_sft
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
12 |
from pydantic import BaseModel, ConfigDict
|
13 |
from loguru import logger
|
14 |
|
|
|
8 |
from modules.flux_model import Flux, FluxParams
|
9 |
from modules.flux_model_f8 import Flux as FluxF8
|
10 |
from safetensors.torch import load_file as load_sft
|
11 |
+
try:
|
12 |
+
from enum import StrEnum
|
13 |
+
except:
|
14 |
+
from enum import Enum
|
15 |
+
class StrEnum(str, Enum):
|
16 |
+
pass
|
17 |
from pydantic import BaseModel, ConfigDict
|
18 |
from loguru import logger
|
19 |
|