Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Update autoregressive/models/generate.py
Browse files
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,
|
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:
|