conditioning_channels = conditioning.get_shape().as_list()[
-1] + add_noise if conditioning is not None else add_noise
w_init = self.initializers["w"]
b_init = self.initializers["b"]
ch = [512]
sz = [image_size[:-1]]
keep_prob_ph = 1 // not passed in as a placeholder
After Change
add_noise = self.noise_channels_per_layer
if conditioning is not None:
conditioning_channels = conditioning.get_shape().as_list()[-1]
conditioning_channels = conditioning_channels + add_noise
else:
conditioning_channels = add_noise
// feature channels design pattern
ch = [512]
sz = [image_size[:-1]]
for i in range(4):
new_ch = ch[-1] + conditioning_channels * self.with_shortcuts[i]
new_ch = round(new_ch / 2)
ch.append(new_ch)
sz = [[int(round(i / 2)) for i in sz[0]]] + sz
// resizing utilities