File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
src/diffusers/pipelines/pag Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 77
88import torch
99from accelerate import init_empty_weights
10+ from termcolor import colored
11+ from transformers import AutoModelForCausalLM , AutoTokenizer
12+
1013from diffusers import (
1114 DCAE ,
1215 DPMSolverMultistepScheduler ,
1619)
1720from diffusers .models .modeling_utils import load_model_dict_into_meta
1821from diffusers .utils .import_utils import is_accelerate_available
19- from termcolor import colored
20- from transformers import AutoModelForCausalLM , AutoTokenizer
22+
2123
2224CTX = init_empty_weights if is_accelerate_available else nullcontext
2325
@@ -203,7 +205,7 @@ def main(args):
203205 # Scheduler
204206 if args .scheduler_type == "flow-dpm_solver" :
205207 scheduler = DPMSolverMultistepScheduler (
206- flow_shift = flow_shift ,
208+ flow_shift = flow_shift ,
207209 use_flow_sigmas = True ,
208210 prediction_type = "flow_prediction" ,
209211 )
Original file line number Diff line number Diff line change 77
88import torch
99from accelerate import init_empty_weights
10+ from termcolor import colored
11+ from transformers import AutoModelForCausalLM , AutoTokenizer
12+
1013from diffusers import (
1114 DCAE ,
1215 DPMSolverMultistepScheduler ,
1619)
1720from diffusers .models .modeling_utils import load_model_dict_into_meta
1821from diffusers .utils .import_utils import is_accelerate_available
19- from termcolor import colored
20- from transformers import AutoModelForCausalLM , AutoTokenizer
22+
2123
2224CTX = init_empty_weights if is_accelerate_available else nullcontext
2325
@@ -203,7 +205,7 @@ def main(args):
203205 # Scheduler
204206 if args .scheduler_type == "flow-dpm_solver" :
205207 scheduler = DPMSolverMultistepScheduler (
206- flow_shift = flow_shift ,
208+ flow_shift = flow_shift ,
207209 use_flow_sigmas = True ,
208210 prediction_type = "flow_prediction" ,
209211 )
Original file line number Diff line number Diff line change 3636from ...utils .torch_utils import randn_tensor
3737from ..pipeline_utils import DiffusionPipeline , ImagePipelineOutput
3838from ..pixart_alpha .pipeline_pixart_alpha import (
39- ASPECT_RATIO_256_BIN ,
4039 ASPECT_RATIO_512_BIN ,
4140 ASPECT_RATIO_1024_BIN ,
4241)
You can’t perform that action at this time.
0 commit comments