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

Flux hires-fix #259

Open
nitinmukesh opened this issue Nov 8, 2024 · 2 comments
Open

Flux hires-fix #259

nitinmukesh opened this issue Nov 8, 2024 · 2 comments

Comments

@nitinmukesh
Copy link

I am using flux_text_to_image_low_vram.py

As I see the generated image using pipe is passed for upscaling.

image = pipe(
    prompt=prompt, negative_prompt=negative_prompt,
    num_inference_steps=50, cfg_scale=2.0, embedded_guidance=3.5
)
image.save("image_1024_cfg.jpg")

# Highres-fix
torch.manual_seed(10)
image = pipe(
    prompt=prompt,
    num_inference_steps=50, embedded_guidance=3.5,
    input_image=image.resize((2048, 2048)), height=2048, width=2048, denoising_strength=0.6, tiled=True
)
image.save("image_2048_highres.jpg")

I just want to upscale some Flux images generated earlier. How can I do that. (only use # Highres-fix code without generating image)

input_image=image.resize

@Artiprocher
Copy link
Collaborator

Fixed. Please try again.

@nitinmukesh
Copy link
Author

@Artiprocher

Sorry I do not see any updates in repo.

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

2 participants