Skip to content

2D ControlNet tutorial #443

Answered by virginiafdez
postmarone96 asked this question in Q&A
Discussion options

You must be logged in to vote

Dear Maroan,

Here's a reply to your questions:

  1. It does not really make a difference, because the requires_grad flag of the U-Net parameters are set to False.
  2. I just checked the tutorial and the validation loop is wrong indeed. I'll fix it as soon as possible. We also recently implemented a new inferer for ControlNet, so the new code will be cleaner, but essentially, everything should be exactly as in training (unless you are sampling) except for the train / eval modes, as you say.
  3. There is no noise added in the encoding function. With the autoencoder, you just apply the reparametrization trick to add noise after you calculate the mean and standard deviations of your input, but this whole…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@postmarone96
Comment options

@postmarone96
Comment options

@virginiafdez
Comment options

Answer selected by postmarone96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants