feat: add BatchNormalization layer to TensorMap model builder#322
Open
Sickwoman wants to merge 1 commit intoc2siorg:mainfrom
Open
feat: add BatchNormalization layer to TensorMap model builder#322Sickwoman wants to merge 1 commit intoc2siorg:mainfrom
Sickwoman wants to merge 1 commit intoc2siorg:mainfrom
Conversation
- Add BatchNormalizationNode component with momentum and epsilon params - Register custombatchnorm in Canvas nodeTypes and defaultParams - Add BatchNorm properties panel to NodePropertiesPanel - Add BatchNorm entry to Sidebar layer list - Add node-batchnorm color token to tailwind.config.js
Contributor
Author
|
Reopened PR#252 as suggested. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds full-stack support for the BatchNormalization layer in TensorMap,
allowing users to add batch normalization between layers in the model builder canvas.
Changes
Backend
app/services/model_generation.py— Addedcustombatchnormnode handler:tests/test_model_generation.py— Added unit tests for BatchNormalization layerFrontend
Canvas.jsx— Registeredcustombatchnormnode type with default params{ momentum: "0.99", epsilon: "0.001" }Helpers.jsx— Added validation forcustombatchnormnode (momentum and epsilon required)Sidebar.jsx— Added BatchNorm drag-and-drop item to the layer sidebarBatchNormalizationNode/— New custom node component with momentum and epsilon input fieldsParameters
momentum0.99epsilon0.001How to Test
No Breaking Changes
All existing layer types and model builder functionality are unchanged.