class_docstr: Args:
      use_gpu (bool): whether use gpu
      threshold (float): threshold to reserve the result for output.
class_docstr_tok: ["Args",":","use_gpu","(","bool",")",":","whether","use","gpu","threshold","(","float",")",":","threshold","to","reserve","the","result","for","output","."]
code: def __init__(self, use_gpu: bool = False):
      super(DetectorSOLOv2, self).__init__(use_gpu=use_gpu)
  
imports: import base64
  import os
  import time
  from functools import reduce
  from typing import Union
  import numpy
  import solov2.data_feed
  import solov2.processor
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import serving
label_desc: Use image node_id 1 to create a new DetectorSOLOv2 object from inherited base classes: Detector with example: obj = DetectorSOLOv2(use_gpu)