da03 commited on
Commit
bf26394
·
1 Parent(s): 98a4a00
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -218,7 +218,7 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
218
  #norm_y = int(round(y / 256 * 640)) #y + (1080 - 256) / 2
219
  norm_x = x + (1920 - 512) / 2
220
  norm_y = y + (1080 - 512) / 2
221
- if False and DEBUG_TEACHER_FORCING:
222
  norm_x = x
223
  norm_y = y
224
  #action_descriptions.append(f"{(norm_x-prev_x):.0f}~{(norm_y-prev_y):.0f}")
@@ -381,7 +381,7 @@ async def websocket_endpoint(websocket: WebSocket):
381
  next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
382
  # Load and append the corresponding ground truth image instead of model output
383
  print ('here4', len(previous_frames))
384
- if False and DEBUG_TEACHER_FORCING:
385
  img = Image.open(f"record_100/image_{82+len(previous_frames)}.png")
386
  previous_frames.append(img)
387
  elif False:
 
218
  #norm_y = int(round(y / 256 * 640)) #y + (1080 - 256) / 2
219
  norm_x = x + (1920 - 512) / 2
220
  norm_y = y + (1080 - 512) / 2
221
+ if True and DEBUG_TEACHER_FORCING:
222
  norm_x = x
223
  norm_y = y
224
  #action_descriptions.append(f"{(norm_x-prev_x):.0f}~{(norm_y-prev_y):.0f}")
 
381
  next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
382
  # Load and append the corresponding ground truth image instead of model output
383
  print ('here4', len(previous_frames))
384
+ if True and DEBUG_TEACHER_FORCING:
385
  img = Image.open(f"record_100/image_{82+len(previous_frames)}.png")
386
  previous_frames.append(img)
387
  elif False: