Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -240,7 +240,7 @@ def compose_clevr_objects(prompt):
|
|
240 |
def model_fn(x_t, ts, **kwargs):
|
241 |
half = x_t[:1]
|
242 |
combined = th.cat([half] * kwargs['y'].size(0), dim=0)
|
243 |
-
model_out =
|
244 |
eps, rest = model_out[:, :3], model_out[:, 3:]
|
245 |
masks = kwargs.get('masks')
|
246 |
cond_eps = eps[masks].mean(dim=0, keepdim=True)
|
|
|
240 |
def model_fn(x_t, ts, **kwargs):
|
241 |
half = x_t[:1]
|
242 |
combined = th.cat([half] * kwargs['y'].size(0), dim=0)
|
243 |
+
model_out = clevr_model(combined, ts, **kwargs)
|
244 |
eps, rest = model_out[:, :3], model_out[:, 3:]
|
245 |
masks = kwargs.get('masks')
|
246 |
cond_eps = eps[masks].mean(dim=0, keepdim=True)
|