Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
f547ef2
1
Parent(s):
9cb35be
yes
Browse files
__pycache__/two_stream_shunt_adapter.cpython-310.pyc
CHANGED
Binary files a/__pycache__/two_stream_shunt_adapter.cpython-310.pyc and b/__pycache__/two_stream_shunt_adapter.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -143,7 +143,13 @@ def infer(prompt, negative_prompt, adapter_l_file, adapter_g_file, strength, noi
|
|
143 |
pipe.scheduler = SCHEDULERS[scheduler_name].from_config(pipe.scheduler.config)
|
144 |
|
145 |
# Get T5 embeddings for semantic understanding
|
146 |
-
t5_ids = t5_tok(
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
t5_seq = t5_mod(t5_ids).last_hidden_state
|
148 |
|
149 |
# Get proper SDXL CLIP embeddings
|
|
|
143 |
pipe.scheduler = SCHEDULERS[scheduler_name].from_config(pipe.scheduler.config)
|
144 |
|
145 |
# Get T5 embeddings for semantic understanding
|
146 |
+
t5_ids = t5_tok(
|
147 |
+
prompt,
|
148 |
+
return_tensors="pt",
|
149 |
+
padding="max_length",
|
150 |
+
max_length=77, # Match CLIP's standard length
|
151 |
+
truncation=True
|
152 |
+
).input_ids.to(device)
|
153 |
t5_seq = t5_mod(t5_ids).last_hidden_state
|
154 |
|
155 |
# Get proper SDXL CLIP embeddings
|