Skip to content

Commit

Permalink
Update sdxl_train_controlnet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbds committed Jul 8, 2024
1 parent 50022bd commit 1776955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdxl_train_controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def remove_model(old_ckpt_name):
# orig_size, crop_size, target_size, accelerator.device
# ).to(weight_dtype)

embs = torch.cat([orig_size, crop_size, target_size], dim=-1).to(accelerator.device).to(weight_dtype)
embs = torch.cat([orig_size, crop_size, target_size]).to(accelerator.device).to(weight_dtype) #B,6
# concat embeddings
#vector_embedding = torch.cat([pool2, embs], dim=1).to(weight_dtype)
vector_embedding_dict = {
Expand Down

0 comments on commit 1776955

Please sign in to comment.