da03 commited on
Commit
43bc3c7
·
1 Parent(s): c127bb8
Files changed (2) hide show
  1. main.py +1 -1
  2. utils.py +2 -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
@@ -100,7 +100,8 @@ def sample_frame(model: LatentDiffusion, prompt: str, image_sequence: torch.Tens
100
  data_std = 6.78
101
  data_min = -27.681446075439453
102
  data_max = 30.854148864746094
103
- x_samples_ddim = samples_ddim * data_std + data_mean
 
104
  x_samples_ddim = model.decode_first_stage(x_samples_ddim)
105
  print ('dfsf3')
106
  #x_samples_ddim = pos_map.to(c['c_concat'].device).unsqueeze(0).expand(-1, 3, -1, -1)
 
100
  data_std = 6.78
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)