wondervictor commited on
Commit
01e0ad8
·
verified ·
1 Parent(s): 7d5e8b3

Update autoregressive/models/generate.py

Browse files
Files changed (1) hide show
  1. autoregressive/models/generate.py +1 -1
autoregressive/models/generate.py CHANGED
@@ -171,7 +171,7 @@ def generate(model, cond, max_new_tokens, emb_masks=None, cfg_scale=1.0, cfg_int
171
 
172
  if condition is not None:
173
  condition_null = torch.zeros_like(condition)
174
- condition_combined = torch.cat((condition, condition_null), dim=0)
175
  else:
176
  condition_combined = None
177
  else:
 
171
 
172
  if condition is not None:
173
  condition_null = torch.zeros_like(condition)
174
+ condition_combined = torch.cat((condition, condition), dim=0)
175
  else:
176
  condition_combined = None
177
  else: