yuntian-deng commited on
Commit
ab84bf5
·
1 Parent(s): fe4f4a4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -57,7 +57,7 @@ def create_position_and_click_map(pos,action_type,image_size=64, original_width=
57
  """
58
  x, y = pos
59
  if x is None:
60
- return torch.zeros((1, image_size, image_size)), torch.zeros((1, image_size, image_size))
61
  # Scale the positions to new size
62
  #x_scaled = int((x / original_width) * image_size)
63
  #y_scaled = int((y / original_height) * image_size)
 
57
  """
58
  x, y = pos
59
  if x is None:
60
+ return torch.zeros((1, image_size, image_size)), torch.zeros((1, image_size, image_size)), None, None
61
  # Scale the positions to new size
62
  #x_scaled = int((x / original_width) * image_size)
63
  #y_scaled = int((y / original_height) * image_size)