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.



1311
1312
1313
1314
1315
# File 'lib/informers/models.rb', line 1311

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

Instance Attribute Details

#logitsObject (readonly)

Returns the value of attribute logits.



1309
1310
1311
# File 'lib/informers/models.rb', line 1309

def logits
  @logits
end

#pred_boxesObject (readonly)

Returns the value of attribute pred_boxes.



1309
1310
1311
# File 'lib/informers/models.rb', line 1309

def pred_boxes
  @pred_boxes
end