diff options
| author | Logan Bauman <logan_bauman@brown.edu> | 2022-05-05 11:12:46 -0400 |
|---|---|---|
| committer | Logan Bauman <logan_bauman@brown.edu> | 2022-05-05 11:12:46 -0400 |
| commit | 6e5f2d1a62f4f3bf0e87829082b2120ca440ddf0 (patch) | |
| tree | ecfd65137a4209465c2a6fa4734b1116d9aefeff /losses.py | |
| parent | 75881fd64d214280c9a5e41a49d016f9b1cf3d12 (diff) | |
hi
Diffstat (limited to 'losses.py')
| -rw-r--r-- | losses.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,7 +11,7 @@ class YourModel(tf.keras.Model): self.content_image = transform.resize(content_image, tf.shape(style_image), anti_aliasing=True) self.content_image = tf.expand_dims(self.content_image, axis=0) - + #perhaps consider cropping to avoid distortion self.style_image = transform.resize(style_image, tf.shape(style_image), anti_aliasing=True) self.style_image = tf.expand_dims(self.style_image, axis=0) @@ -19,6 +19,8 @@ class YourModel(tf.keras.Model): self.alpha = hp.alpha self.beta = hp.beta + print(self.x.shape) + print(self.content_image.shape, self.style_image.shape) self.optimizer = tf.keras.optimizers.Adam() |
