class_docstr: This module implements the task- and model-specific estimator for PyTorch GOTURN (object tracking).
class_docstr_tok: ["This","module","implements","the","task-","and","model-specific","estimator","for","PyTorch","GOTURN","(","object","tracking",")","."]
docstr: Method `track` for GOT-10k toolkit trackers (MIT licence).
  
  :param img_files: Image files.
  :param box: Initial boxes.
  :param visualize: Visualise tracking.
docstr_tok: ["Method","`","track","`","for","GOT-10k","toolkit","trackers","(","MIT","licence",")",".",":","param","img_files",":","Image","files",".",":","param","box",":","Initial","boxes",".",":","param","visualize",":","Visualise","tracking","."]
code: def track(
      self,
      img_files: List[str],
      box: np.ndarray,
      visualize: bool = False,
  ) -> Tuple[np.ndarray, np.ndarray]:
      """
      Method `track` for GOT-10k toolkit trackers (MIT licence).
  
      :param img_files: Image files.
      :param box: Initial boxes.
      :param visualize: Visualise tracking.
      """
      from got10k.utils.viz import show_frame
      from PIL import Image
  
      frame_num = len(img_files)
      boxes = np.zeros((frame_num, 4))
      boxes[0] = box
      times = np.zeros(frame_num)
  
      for i_f, img_file in enumerate(img_files):
          image = Image.open(img_file)
          if not image.mode == "RGB":
              image = image.convert("RGB")
  
          start_time = time.time()
          if i_f == 0:
              self.init(image, box)
          else:
              boxes[i_f, :] = self.update(image)
          times[i_f] = time.time() - start_time
  
          if visualize:
              show_frame(image, boxes[i_f, :])
  
      return boxes, times
  
imports: import logging
  import time
  from typing import List, Dict, Optional, Tuple, Union, TYPE_CHECKING
  import numpy
  from art.estimators.object_tracking.object_tracker import ObjectTrackerMixin
  from art.estimators.pytorch import PyTorchEstimator
label_desc: Use image node_id 17 for calling the PyTorchGoturn obj's underlying member method code with example usage: obj.track(img_files, box, visualize) and returns: boxes,  times