Skip to content

Commit

Permalink
Merge pull request #127 from boomb0om/master
Browse files Browse the repository at this point in the history
fix incorrect argument pass
  • Loading branch information
shonenkov authored Jun 30, 2022
2 parents 3a7fe51 + 0a0e1bb commit 04dfbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rudalle/vae/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, ddconfig, n_embed, embed_dim, dwt=False, kl_weight=1e-8):
def encode(self, x, disable_gumbel_softmax=False):
h = self.encoder(x)
h = self.quant_conv(h)
quant, emb_loss, info = self.quantize(h, disable_gumbel_softmax)
quant, emb_loss, info = self.quantize(h, disable_gumbel_softmax=disable_gumbel_softmax)
return quant, emb_loss, info

def decode(self, quant):
Expand Down

0 comments on commit 04dfbb1

Please sign in to comment.