Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lucid/optvis/param/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def image(w, h=None, batch=None, sd=None, decorrelate=True, fft=True, alpha=Fals
output = to_valid_rgb(t[..., :3], decorrelate=decorrelate, sigmoid=True)
if alpha:
a = tf.nn.sigmoid(t[..., 3:])
return tf.concat([rgb, a], -1)
return tf.concat([output, a], -1)
return output

def grayscale_image_rgb(*args, **kwargs):
"""Takes same arguments as image"""
output = image(*args, channels=1, **kwargs)
return tf.tile(output, (1,1,1,3))
return tf.tile(output, (1,1,1,3))