Skip to content

Commit

Permalink
[VAE] fix the downsample block in Encoder. (huggingface#156)
Browse files Browse the repository at this point in the history
* pass downsample_padding in encoder

* update tests
  • Loading branch information
patil-suraj authored Aug 6, 2022
1 parent 2c1b4e2 commit 4845fd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(
out_channels=output_channel,
add_downsample=not is_final_block,
resnet_eps=1e-6,
downsample_padding=0,
resnet_act_fn=act_fn,
attn_num_head_channels=None,
temb_channels=None,
Expand Down

0 comments on commit 4845fd1

Please sign in to comment.