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

SDXL inversion not working #10

Open
victolee0 opened this issue Aug 27, 2024 · 0 comments
Open

SDXL inversion not working #10

victolee0 opened this issue Aug 27, 2024 · 0 comments

Comments

@victolee0
Copy link

victolee0 commented Aug 27, 2024

from latent_sdxl import get_solver as get_solver_sdxl

set_seed(args.seed)
create_workdir(args.workdir)
solver_config = munchify({'num_sampling': args.NFE})
callback = None
img = load_img(args.img_path, size=args.img_size)
solver = get_solver(args.method,
solver_config=solver_config,
device=args.device)
result = solver.sample(prompt=[args.null_prompt, args.prompt],
src_img=img,
cfg_guidance=args.cfg_guidance,
callback_fn=callback)
save_image(result, args.workdir.joinpath(f'result/reconstruct.png'), normalize=True)

The --model argument is set to sdxl, but get_solver_sdxl is not being used, so SD1.5 is executed instead of SDXL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant