da03 commited on
Commit
dfd6add
·
1 Parent(s): 43bc3c7
Files changed (2) hide show
  1. main.py +1 -1
  2. utils.py +1 -1
main.py CHANGED
@@ -217,7 +217,7 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
217
  data_std = 6.78
218
  data_min = -27.681446075439453
219
  data_max = 30.854148864746094
220
- #image_sequence_tensor = (image_sequence_tensor - data_mean) / data_std
221
 
222
  # Prepare the prompt based on the previous actions
223
  action_descriptions = []
 
217
  data_std = 6.78
218
  data_min = -27.681446075439453
219
  data_max = 30.854148864746094
220
+ image_sequence_tensor = (image_sequence_tensor - data_mean) / data_std
221
 
222
  # Prepare the prompt based on the previous actions
223
  action_descriptions = []
utils.py CHANGED
@@ -101,7 +101,7 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
101
  data_min = -27.681446075439453
102
  data_max = 30.854148864746094
103
  x_samples_ddim = samples_ddim
104
- #x_samples_ddim = xsamples_ddim * data_std + data_mean
105
  x_samples_ddim = model.decode_first_stage(x_samples_ddim)
106
  print ('dfsf3')
107
  #x_samples_ddim = pos_map.to(c['c_concat'].device).unsqueeze(0).expand(-1, 3, -1, -1)
 
101
  data_min = -27.681446075439453
102
  data_max = 30.854148864746094
103
  x_samples_ddim = samples_ddim
104
+ x_samples_ddim = x_samples_ddim * data_std + data_mean
105
  x_samples_ddim = model.decode_first_stage(x_samples_ddim)
106
  print ('dfsf3')
107
  #x_samples_ddim = pos_map.to(c['c_concat'].device).unsqueeze(0).expand(-1, 3, -1, -1)