class_docstr: Asynchronous Action Prediction and Visualization pipeline with AsyncVis.
class_docstr_tok: ["Asynchronous","Action","Prediction","and","Visualization","pipeline","with","AsyncVis","."]
docstr: Args:
      cfg (CfgNode): configs. Details can be found in
          slowfast/config/defaults.py
      async_vis (AsyncVis object): asynchronous visualizer.
docstr_tok: ["Args",":","cfg","(","CfgNode",")",":","configs",".","Details","can","be","found","in","slowfast\/config\/defaults.py","async_vis","(","AsyncVis","object",")",":","asynchronous","visualizer","."]
code: def __init__(self, cfg, async_vis):
      """
      Args:
          cfg (CfgNode): configs. Details can be found in
              slowfast/config/defaults.py
          async_vis (AsyncVis object): asynchronous visualizer.
      """
      self.model = AsycnActionPredictor(
          cfg=cfg, result_queue=async_vis.task_queue
      )
      self.async_vis = async_vis
  
imports: import atexit
  import numpy
  import queue
  import torch
  import torch.multiprocessing
  import slowfast.utils.logging
  from slowfast.datasets import cv2_transform
  from slowfast.visualization.predictor import Predictor
label_desc: Use image node_id 1 to create a new AsyncDemo object  with example: obj = AsyncDemo(cfg, async_vis)