Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
-
Any update or good examples? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I want to know what the shape or format of "class" is if I want to add the class condition to the unet? Just set the classe_labels 0, 1, 2, 3?
Unet2DModel: class_labels (torch.FloatTensor, optional, defaults to None) — Optional class labels for conditioning. Their embeddings will be summed with the timestep embeddings.
Unet2DConditionalModel: class_labels (torch.Tensor, optional, defaults to None) — Optional class labels for conditioning. Their embeddings will be summed with the timestep embeddings. timestep_cond — (torch.Tensor, optional, defaults to None): Conditional embeddings for timestep. If provided, the embeddings will be summed with the samples passed through the self.time_embedding layer to obtain the timestep embeddings.
Beta Was this translation helpful? Give feedback.
All reactions