Thank you so much for releasing your code and I have some questions while reproducing your work.
In the forward() function of class ResBlockShift(TimestepZBlock), the out_rest(h) seems set h to zero which doesn't make emb_z effrctive. Is there any problems in this module?
# Adaptive Group Normalization
out_norm, out_rest = self.out_layers[0], self.out_layers[1:]
scale, shift = torch.chunk(emb_out, 2, dim=1)
z_scale, z_shift = torch.chunk(emb_z_out, 2, dim=1)
h = (1. + z_scale) * (out_norm(h) * (1. + scale) + shift) + z_shift
h = out_rest(h)
return self.skip_connection(x) + h
Thank you so much for releasing your code and I have some questions while reproducing your work.
In the
forward()function ofclass ResBlockShift(TimestepZBlock), theout_rest(h)seems set h to zero which doesn't makeemb_zeffrctive. Is there any problems in this module?