Mehdi Cherti commited on
Commit
d8a4058
1 Parent(s): 9935a02
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -50,6 +50,7 @@ def gen(md, model_name, md2, text, seed, nb_samples, width, height):
50
  cond[1][1:] = cond[1][0:1]
51
 
52
  x_init = torch.randn(nb_samples, 3, height, width).to(device)
 
53
  fake_sample = sample(model, x_init=x_init, cond=cond)
54
  fake_sample = (fake_sample + 1) / 2
55
  grid = torchvision.utils.make_grid(fake_sample, nrow=4)
 
50
  cond[1][1:] = cond[1][0:1]
51
 
52
  x_init = torch.randn(nb_samples, 3, height, width).to(device)
53
+ print(x_init.shape)
54
  fake_sample = sample(model, x_init=x_init, cond=cond)
55
  fake_sample = (fake_sample + 1) / 2
56
  grid = torchvision.utils.make_grid(fake_sample, nrow=4)