ojaffe commited on
Commit
6bb971f
·
verified ·
1 Parent(s): 47a3fc6

Upload folder using huggingface_hub

Browse files
__pycache__/predict.cpython-311.pyc CHANGED
Binary files a/__pycache__/predict.cpython-311.pyc and b/__pycache__/predict.cpython-311.pyc differ
 
model_pong.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:96883ed257d0d3f18b836e7b7592bbb3cb72e802de400a89da98733667c88c90
3
  size 2435368
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6c8b9235347bea94e7e5f5f0f225d4c1dbd13a749d5e28920c75c91902ecb11
3
  size 2435368
predict.py CHANGED
@@ -1,4 +1,4 @@
1
- """Optimized blend: Pong AR weight 0.85->0.65, Sonic unchanged 0.7->0.3."""
2
  import sys
3
  import os
4
  import numpy as np
@@ -225,9 +225,10 @@ def predict_next_frame(ens, context_frames: np.ndarray) -> np.ndarray:
225
 
226
  ar_pred = torch.stack(ar_preds, dim=1)
227
 
 
228
  predicted = torch.zeros_like(direct_pred)
229
  for step in range(PRED_FRAMES):
230
- ar_weight = 0.7 - (step / (PRED_FRAMES - 1)) * 0.4
231
  direct_weight = 1.0 - ar_weight
232
  predicted[:, step] = ar_weight * ar_pred[:, step] + direct_weight * direct_pred[:, step]
233
 
 
1
+ """Non-linear Sonic blend: steps 0-1 AR=0.8, steps 2-4 AR=0.5, steps 5-7 AR=0.2."""
2
  import sys
3
  import os
4
  import numpy as np
 
225
 
226
  ar_pred = torch.stack(ar_preds, dim=1)
227
 
228
+ ar_weights = [0.8, 0.8, 0.5, 0.5, 0.5, 0.2, 0.2, 0.2]
229
  predicted = torch.zeros_like(direct_pred)
230
  for step in range(PRED_FRAMES):
231
+ ar_weight = ar_weights[step]
232
  direct_weight = 1.0 - ar_weight
233
  predicted[:, step] = ar_weight * ar_pred[:, step] + direct_weight * direct_pred[:, step]
234