Spaces:
Running
Running
app.py
CHANGED
@@ -226,7 +226,7 @@ def greet(input):
|
|
226 |
#samples, intermediate = sample_ddim(32, n=steps)
|
227 |
#ctx = F.one_hot(torch.randint(0, 5, (32,)), 5).to(device=device).float()
|
228 |
#samples, intermediate = sample_ddim_context(32, ctx, steps)
|
229 |
-
samples, intermediate = sample_ddpm(
|
230 |
#response = transform2(transform(np.moveaxis(samples.detach().cpu().numpy(),1,3)[-1]))
|
231 |
#response2 = transform2(transform(np.moveaxis(samples.detach().cpu().numpy(),1,3)[1]))
|
232 |
#response = im.fromarray(intermediate[24][0][1]).convert("RGB")
|
|
|
226 |
#samples, intermediate = sample_ddim(32, n=steps)
|
227 |
#ctx = F.one_hot(torch.randint(0, 5, (32,)), 5).to(device=device).float()
|
228 |
#samples, intermediate = sample_ddim_context(32, ctx, steps)
|
229 |
+
samples, intermediate = sample_ddpm(steps)
|
230 |
#response = transform2(transform(np.moveaxis(samples.detach().cpu().numpy(),1,3)[-1]))
|
231 |
#response2 = transform2(transform(np.moveaxis(samples.detach().cpu().numpy(),1,3)[1]))
|
232 |
#response = im.fromarray(intermediate[24][0][1]).convert("RGB")
|