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

Lack of Documentation on ControlNet in the Latest ImaginAIry Library Update #354

Closed
ripa001 opened this issue Jul 12, 2023 · 2 comments
Closed
Labels
documentation Improvements or additions to documentation planned

Comments

@ripa001
Copy link

ripa001 commented Jul 12, 2023

With recent update of the ImaginAIry, is not clear how to use ControlNet, as there were a change of parameters on the input
In version 11.0.0 I could send input as the following:

imagine_prompt = ImaginePrompt(
		prompt,
		control_image=image,
		control_mode=kind,
		caption_text=kind,
		steps=steps,
		seed=SEED
	)

Now it gives error, since control_image is not a parameter

@brycedrennan brycedrennan added documentation Improvements or additions to documentation planned labels Jul 27, 2023
@brycedrennan
Copy link
Owner

Being worked on. Closing as duplicate of #208

@brycedrennan
Copy link
Owner

But yes it uses ControlInput now

   caption = ""
    control_inputs = [
        ControlInput(mode="colorize", image=img, strength=2),
    ]
    prompt_add = ". color photo, sharp-focus, highly detailed, intricate, Canon 5D"
    prompt = ImaginePrompt(
        prompt=f"{caption}{prompt_add}",
        init_image=img,
        init_image_strength=0.0,
        control_inputs=control_inputs,
        size=512,
        steps=30,
        prompt_strength=12,
    )

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

No branches or pull requests

2 participants