Class: Informers::DetrObjectDetectionOutput

Inherits:
ModelOutput
  • Object
show all
Defined in:
lib/informers/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ModelOutput

#[]

Constructor Details

#initialize(logits, pred_boxes) ⇒ DetrObjectDetectionOutput

Returns a new instance of DetrObjectDetectionOutput.



1554
1555
1556
1557
1558
# File 'lib/informers/models.rb', line 1554

def initialize(logits, pred_boxes)
  super()
  @logits = logits
  @pred_boxes = pred_boxes
end

Instance Attribute Details

#logitsObject (readonly)

Returns the value of attribute logits.



1552
1553
1554
# File 'lib/informers/models.rb', line 1552

def logits
  @logits
end

#pred_boxesObject (readonly)

Returns the value of attribute pred_boxes.



1552
1553
1554
# File 'lib/informers/models.rb', line 1552

def pred_boxes
  @pred_boxes
end