Skip to content

Commit

Permalink
condition strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidtronix committed Dec 16, 2024
1 parent 4e7cebb commit a3165b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ml4h/models/diffusion_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def apply(x):

def condition_layer_film(input_tensor, control_vector, filters):
# Transform control into gamma and beta
gamma = layers.Dense(filters, activation="linear")(control_vector)
beta = layers.Dense(filters, activation="linear")(control_vector)
gamma = layers.Dense(filters*2, activation="linear")(control_vector)
beta = layers.Dense(filters*2, activation="linear")(control_vector)

# Reshape gamma and beta to match the spatial dimensions
#gamma = tf.reshape(gamma, (-1,) + input_tensor.shape[1:-1] + (filters,))
Expand Down

0 comments on commit a3165b6

Please sign in to comment.