Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【NOMERGE】Profile load graph time #619

Closed
wants to merge 9 commits into from
Next Next commit
remove custom scheduler to refine quality
  • Loading branch information
doombeaker committed Feb 2, 2024
commit ae3142349db8ec0b807473190dec94dbbc4b32ef
3 changes: 0 additions & 3 deletions examples/text_to_image_sdxl_turbo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import torch

from onediff.infer_compiler import oneflow_compile
from onediff.schedulers import EulerDiscreteScheduler
from diffusers import AutoPipelineForText2Image

parser = argparse.ArgumentParser()
Expand Down Expand Up @@ -38,10 +37,8 @@
OUTPUT_TYPE = "pil"

# SDXL turbo base: AutoPipelineForText2Image
scheduler = EulerDiscreteScheduler.from_pretrained(args.base, subfolder="scheduler")
base = AutoPipelineForText2Image.from_pretrained(
args.base,
scheduler=scheduler,
torch_dtype=torch.float16,
variant=args.variant,
use_safetensors=True,
Expand Down
Loading