Spaces:
Runtime error
Runtime error
Commit
·
be95217
1
Parent(s):
e137c08
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -46,12 +46,12 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
|
|
| 46 |
print ('sleeping')
|
| 47 |
#time.sleep(120)
|
| 48 |
print ('finished sleeping')
|
| 49 |
-
samples_ddim = model.p_sample_loop(cond=c, shape=[1, 3, 256, 256], return_intermediates=False, verbose=True)
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
# unconditional_guidance_scale=5.0,
|
| 56 |
# unconditional_conditioning=uc,
|
| 57 |
# eta=0)
|
|
|
|
| 46 |
print ('sleeping')
|
| 47 |
#time.sleep(120)
|
| 48 |
print ('finished sleeping')
|
| 49 |
+
#samples_ddim = model.p_sample_loop(cond=c, shape=[1, 3, 256, 256], return_intermediates=False, verbose=True)
|
| 50 |
+
samples_ddim, _ = sampler.sample(S=4,
|
| 51 |
+
conditioning=c,
|
| 52 |
+
batch_size=1,
|
| 53 |
+
shape=[3, 256, 256],
|
| 54 |
+
verbose=False)
|
| 55 |
# unconditional_guidance_scale=5.0,
|
| 56 |
# unconditional_conditioning=uc,
|
| 57 |
# eta=0)
|