Skip to content

Commit

Permalink
fix bug in no inpaint model
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbliiiing committed Jul 18, 2024
1 parent 2eef3f9 commit 1a5bab2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions easyanimate/models/transformer3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,12 @@ def __init__(
):
super().__init__()
# 4. Define output layers
self.out_channels = in_channels if out_channels is None else out_channels
self.enable_inpaint = in_channels * 2 != out_channels if learn_sigma else in_channels != out_channels
# 4. Define output layers
if learn_sigma:
self.out_channels = in_channels * 2 if out_channels is None else out_channels
else:
self.out_channels = in_channels if out_channels is None else out_channels
self.enable_inpaint = in_channels * 2 != self.out_channels if learn_sigma else in_channels != self.out_channels
self.num_heads = num_attention_heads
self.inner_dim = num_attention_heads * attention_head_dim
self.basic_block_type = basic_block_type
Expand Down

0 comments on commit 1a5bab2

Please sign in to comment.