Spaces:
Running
on
A10G
Running
on
A10G
RohitGandikota
commited on
Commit
·
f83a5f5
1
Parent(s):
f52ac7e
pushing training code
Browse files
trainscripts/textsliders/config_util.py
CHANGED
@@ -5,7 +5,7 @@ import yaml
|
|
5 |
from pydantic import BaseModel
|
6 |
import torch
|
7 |
|
8 |
-
from lora import TRAINING_METHODS
|
9 |
|
10 |
PRECISION_TYPES = Literal["fp32", "fp16", "bf16", "float32", "float16", "bfloat16"]
|
11 |
NETWORK_TYPES = Literal["lierla", "c3lier"]
|
|
|
5 |
from pydantic import BaseModel
|
6 |
import torch
|
7 |
|
8 |
+
from trainscripts.textsliders.lora import TRAINING_METHODS
|
9 |
|
10 |
PRECISION_TYPES = Literal["fp32", "fp16", "bf16", "float32", "float16", "bfloat16"]
|
11 |
NETWORK_TYPES = Literal["lierla", "c3lier"]
|
trainscripts/textsliders/train_util.py
CHANGED
@@ -5,7 +5,7 @@ import torch
|
|
5 |
from transformers import CLIPTextModel, CLIPTokenizer
|
6 |
from diffusers import UNet2DConditionModel, SchedulerMixin
|
7 |
|
8 |
-
from model_util import SDXL_TEXT_ENCODER_TYPE
|
9 |
|
10 |
from tqdm import tqdm
|
11 |
|
|
|
5 |
from transformers import CLIPTextModel, CLIPTokenizer
|
6 |
from diffusers import UNet2DConditionModel, SchedulerMixin
|
7 |
|
8 |
+
from trainscripts.textsliders.model_util import SDXL_TEXT_ENCODER_TYPE
|
9 |
|
10 |
from tqdm import tqdm
|
11 |
|