Package id.dope4j.io
Record Class OutputTensor
public record OutputTensor(NDArray tensor, NDArray beliefMaps, AffinityFields affinities)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOutputTensor
(NDArray tensor, NDArray beliefMaps, NDArray affinities) OutputTensor
(NDArray tensor, NDArray beliefMaps, AffinityFields affinities) Creates an instance of aOutputTensor
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaffinities
record component.NDArray
Tensor which represents Belief Maps for all keypoints.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.NDArray
tensor()
Raw tensor as returned by the networkfinal String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OutputTensor
public OutputTensor(NDArray tensor, NDArray beliefMaps, NDArray affinities) -
OutputTensor
Creates an instance of aOutputTensor
record class.- Parameters:
tensor
- the value for thetensor
record componentbeliefMaps
- the value for thebeliefMaps
record componentaffinities
- the value for theaffinities
record component
-
-
Method Details
-
tensor
public NDArray tensor()Raw tensor as returned by the network -
beliefMaps
public NDArray beliefMaps()Tensor which represents Belief Maps for all keypoints.There expected to be
DopeConstants.BELIEF_MAPS_COUNT
Belief Maps - one for each 8 vertices of object cuboid + 1 for cuboid center point.For example beliefMaps[i][x][y] describes confidence of the network that vertex Vi of object's cuboid is located at (x, y) coordinates of the input image.
Because on image there may be multiple of similar objects it means that on one beliefMaps[i] there can be multiple of different Vi vertices detected, which belongs to different objects on the image.
For memory purposes this effectively is a reference to subarray inside
tensor
. -
affinities
Returns the value of theaffinities
record component.- Returns:
- the value of the
affinities
record component
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
.
-