da03 commited on
Commit
2e11dd0
·
1 Parent(s): 4896769
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -113,7 +113,7 @@ def prepare_model_inputs(
113
 
114
  if hidden_states is not None:
115
  inputs['hidden_states'] = hidden_states
116
- DEBUG_MODE = True
117
  if DEBUG_MODE:
118
  print ('DEBUG MODE, REMOVING INPUTS')
119
  if 'hidden_states' in inputs:
@@ -148,7 +148,7 @@ def _process_frame_sync(model, inputs):
148
  if use_rnn:
149
  sample_latent = output_from_rnn[:, :16]
150
  else:
151
- NUM_SAMPLING_STEPS = 1000
152
  if NUM_SAMPLING_STEPS >= 1000:
153
  sample_latent = model.p_sample_loop(cond={'c_concat': output_from_rnn}, shape=[1, *LATENT_DIMS], return_intermediates=False, verbose=True)
154
  else:
 
113
 
114
  if hidden_states is not None:
115
  inputs['hidden_states'] = hidden_states
116
+ DEBUG_MODE = False
117
  if DEBUG_MODE:
118
  print ('DEBUG MODE, REMOVING INPUTS')
119
  if 'hidden_states' in inputs:
 
148
  if use_rnn:
149
  sample_latent = output_from_rnn[:, :16]
150
  else:
151
+ NUM_SAMPLING_STEPS = 32
152
  if NUM_SAMPLING_STEPS >= 1000:
153
  sample_latent = model.p_sample_loop(cond={'c_concat': output_from_rnn}, shape=[1, *LATENT_DIMS], return_intermediates=False, verbose=True)
154
  else: