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

pix2pix #19

Open
J3rr1ck opened this issue Feb 9, 2023 · 8 comments
Open

pix2pix #19

J3rr1ck opened this issue Feb 9, 2023 · 8 comments

Comments

@J3rr1ck
Copy link
Contributor

J3rr1ck commented Feb 9, 2023

hey all just checking if pix2pix is supposed to be working as I'm getting some odd errors
ValueError: Incorrect configuration settings! The config of pipeline.unet: FrozenDict([('sample_size', 64), ('in_channels', 4), ('out_channels', 4), ('center_input_sample', False), ('flip_sin_to_cos', True), ('freq_shift', 0), ('down_block_types', ['CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'CrossAttnDownBlock2D', 'DownBlock2D']), ('mid_block_type', 'UNetMidBlock2DCrossAttn'), ('up_block_types', ['UpBlock2D', 'CrossAttnUpBlock2D', 'CrossAttnUpBlock2D', 'CrossAttnUpBlock2D']), ('only_cross_attention', False), ('block_out_channels', [320, 640, 1280, 1280]), ('layers_per_block', 2), ('downsample_padding', 1), ('mid_block_scale_factor', 1), ('act_fn', 'silu'), ('norm_num_groups', 32), ('norm_eps', 1e-05), ('cross_attention_dim', 1024), ('attention_head_dim', [5, 10, 20, 20]), ('dual_cross_attention', False), ('use_linear_projection', True), ('class_embed_type', None), ('num_class_embeds', None), ('upcast_attention', False), ('resnet_time_scale_shift', 'default'), ('_class_name', 'UNet2DConditionModel'), ('_diffusers_version', '0.8.0'), ('_name_or_path', '/home/jerrick/.cache/huggingface/diffusers/models--stabilityai--stable-diffusion-2-base/snapshots/d28fc8045793886e512c5389771d3b3d560f9575/unet')]) expects 4 but received num_channels_latents: 4 + num_channels_image: 4 = 8. Please verify the config of pipeline.unetor yourimageinput.

@J3rr1ck
Copy link
Contributor Author

J3rr1ck commented Feb 9, 2023

figured it out

@J3rr1ck J3rr1ck closed this as completed Feb 9, 2023
@hamin
Copy link

hamin commented Feb 16, 2023

@J3rr1ck I'm running into the same issue. Any pointers?

@J3rr1ck
Copy link
Contributor Author

J3rr1ck commented Feb 16, 2023

The diffusers pix2pix-sd model here is the only model I've gotten working so far

@abhishekkrthakur
Copy link
Owner

yeah. it needs to be a pix2pix model.

@abhishekkrthakur
Copy link
Owner

this will also work: https://huggingface.co/timbrooks/instruct-pix2pix

@J3rr1ck
Copy link
Contributor Author

J3rr1ck commented Feb 16, 2023

I get the following error with the timbrooks model
> ERROR Model type not supported, img2img pipeline not created

@abhishekkrthakur
Copy link
Owner

reopening. will take a look. it should work.

@J3rr1ck
Copy link
Contributor Author

J3rr1ck commented Feb 24, 2023

Any luck on poking this? Any way others can help?

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

3 participants