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

Error:class_labels should be provided when num_class_embeds > 0 #97

Open
irena123333 opened this issue Jul 30, 2023 · 1 comment
Open

Comments

@irena123333
Copy link

Hi,
I encountered the error:class_labels should be provided when num_class_embeds > 0 when I tried to train the conditional unet model.
Which means I need to specify the class_labels parameter in the function: model_pred = self.unet(compressed_latents, timesteps, encoder_hidden_state ).sample. Can anyone help me solve this error?

@roomeo
Copy link

roomeo commented Jun 14, 2024

@irena123333 Have you solved the problem yet?

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