yuntian-deng commited on
Commit
ad0d386
·
1 Parent(s): e8816b6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -42,7 +42,7 @@ def parse_action_string(action_str):
42
 
43
  return (x, y)
44
 
45
- def create_position_map(pos, image_size=64, original_width=1024, original_height=640):
46
  """Convert cursor position to a binary position map
47
  Args:
48
  x, y: Original cursor positions
@@ -107,7 +107,7 @@ def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]],
107
 
108
  # Initialize the model at the start of your application
109
  #model = initialize_model("config_csllm.yaml", "yuntian-deng/computer-model")
110
- model = initialize_model("2e5_debug_gpt_firstframe_posmap_debugidentity.yaml", "yuntian-deng/computer-model")
111
 
112
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
113
  model = model.to(device)
 
42
 
43
  return (x, y)
44
 
45
+ def create_position_map(pos, image_size=256, original_width=1024, original_height=640):
46
  """Convert cursor position to a binary position map
47
  Args:
48
  x, y: Original cursor positions
 
107
 
108
  # Initialize the model at the start of your application
109
  #model = initialize_model("config_csllm.yaml", "yuntian-deng/computer-model")
110
+ model = initialize_model("2e5_debug_gpt_firstframe_posmap_debugidentity_256.yaml", "yuntian-deng/computer-model")
111
 
112
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
113
  model = model.to(device)