def __init__(self, threshold=2, **kwargs): super().__init__(**kwargs) self.threshold = threshold InputPlug("image_emb", self) InputPlug("reference_emb", self) OutputPlug("facematch", self)
def __init__(self, generator, **kwargs): super(WorkflowNode, self).__init__(**kwargs) logger.debug("InputNode::__init__") self.generator = generator InputPlug(LATENCIES, self) OutputPlug(LATENCIES, self) logger.debug("InputNode::__init__, OUTPUTS: %s", self.outputs)
def __init__(self, input_name, output_name, **kwargs): """Set up a new EmbeddingNode with given names for plugs.""" super().__init__(**kwargs) self.input_name = input_name # Needed to access the value in compute InputPlug(input_name, self) self.output_name = output_name # Needed to access the value in compute OutputPlug(output_name, self)
def __init__(self, percentiles_to_compute=JOIN_PERCENTILES, **kwargs): super(JoinUpper, self).__init__(**kwargs) self.max_value = 0 self.min_value = 0 self.percentiles = None self.percentiles_to_compute = percentiles_to_compute logger.debug("JoinUpper::__init__") InputPlug(LATENCY_DICT, self) OutputPlug(LATENCIES, self) logger.debug("JoinUpper::__init__, OUTPUTS: %s", self.outputs)
def __init__(self, amount=None, **kwargs): super(HireWorkers, self).__init__(**kwargs) InputPlug("amount", self, amount) OutputPlug("workers", self)
def __init__(self, time=None, timezone=0, **kwargs): super(ConvertTime, self).__init__(**kwargs) InputPlug('time', self) InputPlug('timezone', self, timezone) OutputPlug('converted_time', self)
def __init__(self, output_results_filename, **kwargs): super(Done, self).__init__(**kwargs) logger.debug("Done::__init__") InputPlug(LATENCIES, self) self.output_results_filename = output_results_filename