class_docstr: Synchronous Action Prediction and Visualization pipeline with AsyncVis.
class_docstr_tok: ["Synchronous","Action","Prediction","and","Visualization","pipeline","with","AsyncVis","."]
docstr: Get the visualized clips if any.
docstr_tok: ["Get","the","visualized","clips","if","any","."]
code: def get(self):
      """
      Get the visualized clips if any.
      """
      try:
          task = self.async_vis.get()
      except (queue.Empty, IndexError):
          raise IndexError("Results are not available yet.")
  
      return task
  
imports: import queue
  import cv2
  import torch
  from detectron2 import model_zoo
  from detectron2.config import get_cfg
  from detectron2.engine import DefaultPredictor
  import slowfast.utils.checkpoint
  from slowfast.datasets import cv2_transform
  from slowfast.models import build_model
  from slowfast.utils import logging
  from slowfast.visualization.utils import process_cv2_inputs
label_desc: Use image node_id 3 for calling the ActionPredictor obj's underlying member method code with example usage: obj.get() and returns: task