da03 commited on
Commit
4c59739
·
1 Parent(s): 31c8397
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -29,6 +29,8 @@ NUM_MAX_FRAMES = 1
29
  SCREEN_WIDTH = 512
30
  SCREEN_HEIGHT = 384
31
  NUM_SAMPLING_STEPS = 32
 
 
32
 
33
  MODEL_NAME = "yuntian-deng/computer-model-ss005-cont-lr2e5-384k"
34
 
@@ -189,9 +191,8 @@ def _process_frame_sync(model, inputs):
189
 
190
  # UNet sampling
191
  start = time.perf_counter()
192
- use_rnn = False
193
- print (f"use_rnn: {use_rnn}, NUM_SAMPLING_STEPS: {NUM_SAMPLING_STEPS}")
194
- if use_rnn:
195
  sample_latent = output_from_rnn[:, :16]
196
  else:
197
  #NUM_SAMPLING_STEPS = 8
 
29
  SCREEN_WIDTH = 512
30
  SCREEN_HEIGHT = 384
31
  NUM_SAMPLING_STEPS = 32
32
+ USE_RNN = True
33
+ USE_RNN = False
34
 
35
  MODEL_NAME = "yuntian-deng/computer-model-ss005-cont-lr2e5-384k"
36
 
 
191
 
192
  # UNet sampling
193
  start = time.perf_counter()
194
+ print (f"USE_RNN: {USE_RNN}, NUM_SAMPLING_STEPS: {NUM_SAMPLING_STEPS}")
195
+ if USE_RNN:
 
196
  sample_latent = output_from_rnn[:, :16]
197
  else:
198
  #NUM_SAMPLING_STEPS = 8