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.



1471
1472
1473
1474
1475
# File 'lib/informers/models.rb', line 1471

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

Instance Attribute Details

#logitsObject (readonly)

Returns the value of attribute logits.



1469
1470
1471
# File 'lib/informers/models.rb', line 1469

def logits
  @logits
end

#pred_boxesObject (readonly)

Returns the value of attribute pred_boxes.



1469
1470
1471
# File 'lib/informers/models.rb', line 1469

def pred_boxes
  @pred_boxes
end