Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
66279e3
1
Parent(s):
73f2787
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 = False
|
516 |
if feedback:
|
517 |
previous_frames.append(next_frame_append)
|
518 |
else:
|
utils.py
CHANGED
@@ -71,7 +71,7 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
|
|
71 |
print ('finished sleeping')
|
72 |
DDPM = False
|
73 |
DDPM = True
|
74 |
-
|
75 |
|
76 |
if DEBUG:
|
77 |
#c['c_concat'] = c['c_concat']*0
|
@@ -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],
|
|
|
71 |
print ('finished sleeping')
|
72 |
DDPM = False
|
73 |
DDPM = True
|
74 |
+
DDPM = False
|
75 |
|
76 |
if DEBUG:
|
77 |
#c['c_concat'] = c['c_concat']*0
|
|
|
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=4,
|
86 |
conditioning=c,
|
87 |
batch_size=1,
|
88 |
shape=[4, 48, 64],
|