|
Visualisierung 2 CNN
|
Base class for the layer component. More...
Public Member Functions | |
| abstract List< List< Shape > > | GetLineStartShapes (Vector2Int convShape, Vector2Int outputShape, Vector2 theoreticalOutputShape, Vector2Int stride, float allCalcs) |
| abstract Vector3Int | GetOutputShape () |
| Layer () | |
| virtual void | Init () |
| virtual void | SetExpansion (float expansion) |
| Vector3 | CenterPosition () |
| Just returns a Vector on the Z Axis with the correct z positon. More... | |
| Vector2Int | GetPadding () |
| Calculates rounded padding based on filter size. More... | |
| virtual Vector2Int | Get2DOutputShape () |
| Returns a 2d Vector of the layers output shape. More... | |
| virtual void | CalcMesh () |
| Calculates and sets the mesh of the Layers game object. More... | |
| void | AddObserver (Layer observer) |
| Adds an observer to be notified on parameter changes on this layer to allow downstream updated of dependent layers. More... | |
| void | RemoveObserver (Layer observer) |
| Removes an observer. More... | |
| void | NotifyObservers () |
| Notifies obsevers that a parameter change has occured. More... | |
| Layer | GetInputLayer () |
| Get the input layer of this Layer. More... | |
| void | SetEpoch (int epoch) |
| Set the epoch of this layer to load the correct tensor values in the mesh calculation procedure. More... | |
Static Public Member Functions | |
| static int [] | GetMultiDimIndices (int[] shape, int singleDimInd) |
| Returns a multi dimensional index from a single dimensional one based on the shape of the multidimensional array. More... | |
Public Attributes | |
| GameObject | _input |
| Vector2Int | reducedShape |
| Vector2Int | stride = new Vector2Int(1, 1) |
| bool | padding = true |
| float | pointBrightness = 1.0f |
| float | zOffset = 1.0f |
| float | _scale = 1.0f |
| int | epoch = 0 |
Protected Member Functions | |
| abstract List< Shape > | GetPointShapes () |
| virtual void | SubUpdate () |
| virtual void | UpdateForParams () |
| float | ZPosition () |
| Recursively returns the right ZOffset based on input layers. More... | |
| void | OnValidate () |
| Called after each parameter change in the editor. Contains main update procedures. More... | |
| virtual void | AddNodes (List< Vector3 > verts, List< int > inds) |
| Adds the "pixels" to the mesh. More... | |
| Vector3 | GetEdgeBundleCenter (Vector3 originalPoint, float edgeBundle) |
| Returns the edgebundle position for the corresponding point. More... | |
Protected Attributes | |
| Layer | _inputLayer |
| Mesh | _mesh |
| Renderer | _renderer |
| bool | _initialized = false |
| Vector2Int | _tempRes = new Vector2Int(5, 5) |
| bool | renderColored = false |
Base class for the layer component.
| Layer.Layer | ( | ) |
|
protectedvirtual |
Adds the "pixels" to the mesh.
| verts | |
| inds |
| void Layer.AddObserver | ( | Layer | observer | ) |
Adds an observer to be notified on parameter changes on this layer to allow downstream updated of dependent layers.
| observer |
|
virtual |
Calculates and sets the mesh of the Layers game object.
Reimplemented in ConvLayer, FCLayer, MaxPoolLayer, and ImageLayer.
| Vector3 Layer.CenterPosition | ( | ) |
Just returns a Vector on the Z Axis with the correct z positon.
|
virtual |
Returns a 2d Vector of the layers output shape.
Reimplemented in ConvLayer, MaxPoolLayer, and ImageLayer.
|
protected |
Returns the edgebundle position for the corresponding point.
| originalPoint | |
| edgeBundle |
|
pure virtual |
Implemented in ImageLayer, ConvLayer, FCLayer, and MaxPoolLayer.
|
static |
Returns a multi dimensional index from a single dimensional one based on the shape of the multidimensional array.
| shape | |
| singleDimInd |
|
pure virtual |
Implemented in FCLayer, ConvLayer, MaxPoolLayer, and ImageLayer.
| Vector2Int Layer.GetPadding | ( | ) |
Calculates rounded padding based on filter size.
|
protectedpure virtual |
Implemented in ImageLayer, ConvLayer, FCLayer, and MaxPoolLayer.
|
virtual |
| void Layer.NotifyObservers | ( | ) |
Notifies obsevers that a parameter change has occured.
|
protected |
Called after each parameter change in the editor. Contains main update procedures.
| void Layer.RemoveObserver | ( | Layer | observer | ) |
Removes an observer.
| observer |
| void Layer.SetEpoch | ( | int | epoch | ) |
Set the epoch of this layer to load the correct tensor values in the mesh calculation procedure.
| epoch |
|
virtual |
Reimplemented in ConvLayer, MaxPoolLayer, ImageLayer, and FCLayer.
|
protectedvirtual |
Reimplemented in ConvLayer, FCLayer, and MaxPoolLayer.
|
protectedvirtual |
Reimplemented in ConvLayer, FCLayer, MaxPoolLayer, and ImageLayer.
|
protected |
Recursively returns the right ZOffset based on input layers.
|
protected |
| GameObject Layer._input |
|
protected |
|
protected |
|
protected |
| float Layer._scale = 1.0f |
|
protected |
| int Layer.epoch = 0 |
| bool Layer.padding = true |
| float Layer.pointBrightness = 1.0f |
| Vector2Int Layer.reducedShape |
|
protected |
| Vector2Int Layer.stride = new Vector2Int(1, 1) |
| float Layer.zOffset = 1.0f |