hi, i have a question in im2scene/giraffe/training.py, in function train_step_discriminator(),line 152 (x_real.requiresgrad())and line 168(x_fake.requiresgrad()). Does this mean that x_real(from Dataset) and x_fake(from generator) will be optimized over and over again during training, but why optimize these two variables?What are the deep ideas in this?
Hi @xxxmian , no, that's not the case (because we do not update the images). This step is done do get the gradients such that we are able to calculate the R2 gradient penalty which is performed here.
hi, i have a question in im2scene/giraffe/training.py, in function train_step_discriminator(),line 152 (x_real.requiresgrad())and line 168(x_fake.requiresgrad()). Does this mean that x_real(from Dataset) and x_fake(from generator) will be optimized over and over again during training, but why optimize these two variables?What are the deep ideas in this?