Shuang59 commited on
Commit
c97c9f9
β€’
1 Parent(s): bc31fa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 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)
 
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)