Spaces:
Runtime error
Runtime error
Merge branch 'main' of hf.co:spaces/yuntian-deng/computer into main
Browse files
utils.py
CHANGED
@@ -53,7 +53,7 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
|
|
53 |
print ('sleeping')
|
54 |
#time.sleep(120)
|
55 |
print ('finished sleeping')
|
56 |
-
DDPM =
|
57 |
if DDPM:
|
58 |
samples_ddim = model.p_sample_loop(cond=c, shape=[1, 4, 64, 64], return_intermediates=False, verbose=True)
|
59 |
else:
|
|
|
53 |
print ('sleeping')
|
54 |
#time.sleep(120)
|
55 |
print ('finished sleeping')
|
56 |
+
DDPM = False
|
57 |
if DDPM:
|
58 |
samples_ddim = model.p_sample_loop(cond=c, shape=[1, 4, 64, 64], return_intermediates=False, verbose=True)
|
59 |
else:
|