Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
bc1aa30
1
Parent(s):
aa7c8f9
main.py
CHANGED
@@ -512,7 +512,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
512 |
# print ('predicting', f"record_10003/image_{117+len(previous_frames)}.png")
|
513 |
print ('previous_actions', previous_actions)
|
514 |
next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
|
515 |
-
feedback =
|
516 |
if feedback:
|
517 |
previous_frames.append(next_frame_append)
|
518 |
else:
|
|
|
512 |
# print ('predicting', f"record_10003/image_{117+len(previous_frames)}.png")
|
513 |
print ('previous_actions', previous_actions)
|
514 |
next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
|
515 |
+
feedback = True
|
516 |
if feedback:
|
517 |
previous_frames.append(next_frame_append)
|
518 |
else:
|
utils.py
CHANGED
@@ -82,7 +82,7 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
|
|
82 |
if DDPM:
|
83 |
samples_ddim = model.p_sample_loop(cond=c, shape=[1, 4, 48, 64], return_intermediates=False, verbose=True)
|
84 |
else:
|
85 |
-
samples_ddim, _ = sampler.sample(S=
|
86 |
conditioning=c,
|
87 |
batch_size=1,
|
88 |
shape=[4, 48, 64],
|
|
|
82 |
if DDPM:
|
83 |
samples_ddim = model.p_sample_loop(cond=c, shape=[1, 4, 48, 64], return_intermediates=False, verbose=True)
|
84 |
else:
|
85 |
+
samples_ddim, _ = sampler.sample(S=8,
|
86 |
conditioning=c,
|
87 |
batch_size=1,
|
88 |
shape=[4, 48, 64],
|