yuntian-deng commited on
Commit
29d8c86
·
1 Parent(s): ef740c7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -138,7 +138,7 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
138
  norm_x = x
139
  norm_y = y
140
  #action_descriptions.append(f"{(norm_x-prev_x):.0f}~{(norm_y-prev_y):.0f}")
141
- action_descriptions.append(format_action(f'{norm_x-prev_x:.0f}~{norm_y-prev_y:.0f}', pos=='0~0'))
142
  prev_x = norm_x
143
  prev_y = norm_y
144
  elif action_type == "left_click":
 
138
  norm_x = x
139
  norm_y = y
140
  #action_descriptions.append(f"{(norm_x-prev_x):.0f}~{(norm_y-prev_y):.0f}")
141
+ action_descriptions.append(format_action(f'{norm_x-prev_x:.0f}~{norm_y-prev_y:.0f}', x==0 and y==0))
142
  prev_x = norm_x
143
  prev_y = norm_y
144
  elif action_type == "left_click":