Your Name
commited on
Commit
•
e622b4d
1
Parent(s):
ca5b498
ab
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
@@ -10,7 +10,7 @@ from loss import SchedulerWrapper
|
|
10 |
from onediffx import compile_pipe, save_pipe, load_pipe
|
11 |
|
12 |
def callback_dynamic_cfg(pipe, step_index, timestep, callback_kwargs):
|
13 |
-
if step_index == int(pipe.num_timesteps * 0.
|
14 |
callback_kwargs['prompt_embeds'] = callback_kwargs['prompt_embeds'].chunk(2)[-1]
|
15 |
callback_kwargs['add_text_embeds'] = callback_kwargs['add_text_embeds'].chunk(2)[-1]
|
16 |
callback_kwargs['add_time_ids'] = callback_kwargs['add_time_ids'].chunk(2)[-1]
|
|
|
10 |
from onediffx import compile_pipe, save_pipe, load_pipe
|
11 |
|
12 |
def callback_dynamic_cfg(pipe, step_index, timestep, callback_kwargs):
|
13 |
+
if step_index == int(pipe.num_timesteps * 0.81):
|
14 |
callback_kwargs['prompt_embeds'] = callback_kwargs['prompt_embeds'].chunk(2)[-1]
|
15 |
callback_kwargs['add_text_embeds'] = callback_kwargs['add_text_embeds'].chunk(2)[-1]
|
16 |
callback_kwargs['add_time_ids'] = callback_kwargs['add_time_ids'].chunk(2)[-1]
|