Skip to content

Commit

Permalink
remove l2norm output from train_diffusion_prior.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed May 6, 2022
1 parent c76a964 commit 63029f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions train_diffusion_prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def train(image_embed_dim,
clip,
dp_condition_on_text_encodings,
dp_timesteps,
dp_l2norm_output,
dp_normformer,
dp_cond_drop_prob,
dpn_depth,
Expand All @@ -105,8 +104,7 @@ def train(image_embed_dim,
depth = dpn_depth,
dim_head = dpn_dim_head,
heads = dpn_heads,
normformer = dp_normformer,
l2norm_output = dp_l2norm_output).to(device)
normformer = dp_normformer).to(device)

# DiffusionPrior with text embeddings and image embeddings pre-computed
diffusion_prior = DiffusionPrior(
Expand Down Expand Up @@ -273,7 +271,6 @@ def main():
args.clip,
args.dp_condition_on_text_encodings,
args.dp_timesteps,
args.dp_l2norm_output,
args.dp_normformer,
args.dp_cond_drop_prob,
args.dpn_depth,
Expand Down

0 comments on commit 63029f7

Please sign in to comment.