Spaces:
Running
on
Zero
Running
on
Zero
xinjie.wang
commited on
Commit
·
9d0feb9
1
Parent(s):
ee63191
update
Browse files
embodied_gen/models/text_model.py
CHANGED
@@ -86,8 +86,7 @@ def build_text2img_ip_pipeline(
|
|
86 |
ref_scale: float,
|
87 |
device: str = "cuda",
|
88 |
) -> StableDiffusionXLPipelineIP:
|
89 |
-
|
90 |
-
download_kolors_weights(ckpt_dir)
|
91 |
|
92 |
text_encoder = ChatGLMModel.from_pretrained(
|
93 |
f"{ckpt_dir}/text_encoder", torch_dtype=torch.float16
|
@@ -140,8 +139,7 @@ def build_text2img_pipeline(
|
|
140 |
ckpt_dir: str,
|
141 |
device: str = "cuda",
|
142 |
) -> StableDiffusionXLPipeline:
|
143 |
-
|
144 |
-
download_kolors_weights(ckpt_dir)
|
145 |
|
146 |
text_encoder = ChatGLMModel.from_pretrained(
|
147 |
f"{ckpt_dir}/text_encoder", torch_dtype=torch.float16
|
|
|
86 |
ref_scale: float,
|
87 |
device: str = "cuda",
|
88 |
) -> StableDiffusionXLPipelineIP:
|
89 |
+
download_kolors_weights(ckpt_dir)
|
|
|
90 |
|
91 |
text_encoder = ChatGLMModel.from_pretrained(
|
92 |
f"{ckpt_dir}/text_encoder", torch_dtype=torch.float16
|
|
|
139 |
ckpt_dir: str,
|
140 |
device: str = "cuda",
|
141 |
) -> StableDiffusionXLPipeline:
|
142 |
+
download_kolors_weights(ckpt_dir)
|
|
|
143 |
|
144 |
text_encoder = ChatGLMModel.from_pretrained(
|
145 |
f"{ckpt_dir}/text_encoder", torch_dtype=torch.float16
|
embodied_gen/models/texture_model.py
CHANGED
@@ -42,8 +42,7 @@ def build_texture_gen_pipe(
|
|
42 |
ip_adapt_scale: float = 0,
|
43 |
device: str = "cuda",
|
44 |
) -> DiffusionPipeline:
|
45 |
-
|
46 |
-
download_kolors_weights(f"{base_ckpt_dir}/Kolors")
|
47 |
|
48 |
tokenizer = ChatGLMTokenizer.from_pretrained(
|
49 |
f"{base_ckpt_dir}/Kolors/text_encoder"
|
|
|
42 |
ip_adapt_scale: float = 0,
|
43 |
device: str = "cuda",
|
44 |
) -> DiffusionPipeline:
|
45 |
+
download_kolors_weights(f"{base_ckpt_dir}/Kolors")
|
|
|
46 |
|
47 |
tokenizer = ChatGLMTokenizer.from_pretrained(
|
48 |
f"{base_ckpt_dir}/Kolors/text_encoder"
|