Spaces:
Running
Running
Update types.ts
Browse files
types.ts
CHANGED
|
@@ -8,6 +8,8 @@ export enum LayerType {
|
|
| 8 |
CONV3D = 'Conv3D',
|
| 9 |
CONV_TRANSPOSE2D = 'ConvTranspose2D',
|
| 10 |
DEFORMABLE_CONV = 'DeformConv2d',
|
|
|
|
|
|
|
| 11 |
RELU = 'ReLU',
|
| 12 |
LEAKYRELU = 'LeakyReLU',
|
| 13 |
PRELU = 'PReLU',
|
|
@@ -16,6 +18,8 @@ export enum LayerType {
|
|
| 16 |
SWIGLU = 'SwiGLU',
|
| 17 |
SIGMOID = 'Sigmoid',
|
| 18 |
TANH = 'Tanh',
|
|
|
|
|
|
|
| 19 |
MAXPOOL = 'MaxPool2D',
|
| 20 |
MAXPOOL3D = 'MaxPool3D',
|
| 21 |
AVGPOOL = 'AvgPool2D',
|
|
@@ -25,6 +29,7 @@ export enum LayerType {
|
|
| 25 |
PIXEL_SHUFFLE = 'PixelShuffle',
|
| 26 |
DROPOUT = 'Dropout',
|
| 27 |
DROPPATH = 'DropPath',
|
|
|
|
| 28 |
BATCHNORM = 'BatchNorm2D',
|
| 29 |
GROUPNORM = 'GroupNorm',
|
| 30 |
LAYERNORM = 'LayerNorm',
|
|
@@ -53,6 +58,19 @@ export enum LayerType {
|
|
| 53 |
SAM_PROMPT_ENCODER = 'SamPromptEncoder',
|
| 54 |
SAM_MASK_DECODER = 'SamMaskDecoder',
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
// YOLO / Detection
|
| 57 |
C2F_BLOCK = 'C2fBlock',
|
| 58 |
SPPF_BLOCK = 'SPPFBlock',
|
|
@@ -138,8 +156,16 @@ export enum LayerType {
|
|
| 138 |
|
| 139 |
CONCAT = 'Concat',
|
| 140 |
ADD = 'Add',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
OUTPUT = 'Output',
|
| 142 |
CUSTOM = 'CustomLayer',
|
|
|
|
| 143 |
IDENTITY = 'Identity'
|
| 144 |
}
|
| 145 |
|
|
@@ -156,7 +182,7 @@ export interface LayerDefinition {
|
|
| 156 |
type: LayerType;
|
| 157 |
label: string;
|
| 158 |
description: string;
|
| 159 |
-
category: 'Core' | 'Convolution' | 'Recurrent' | 'Normalization' | 'Transformer' | 'GenAI' | 'Utility' | 'Merge' | 'Detection' | 'Audio' | '3D' | 'OCR' | 'Robotics' | 'Video' | 'Graph' | 'Physics' | 'Spiking' | 'RL' | 'Advanced';
|
| 160 |
parameters: LayerParameter[];
|
| 161 |
}
|
| 162 |
|
|
|
|
| 8 |
CONV3D = 'Conv3D',
|
| 9 |
CONV_TRANSPOSE2D = 'ConvTranspose2D',
|
| 10 |
DEFORMABLE_CONV = 'DeformConv2d',
|
| 11 |
+
SEPARABLE_CONV2D = 'SeparableConv2D', // New
|
| 12 |
+
DEPTHWISE_CONV2D = 'DepthwiseConv2D', // New
|
| 13 |
RELU = 'ReLU',
|
| 14 |
LEAKYRELU = 'LeakyReLU',
|
| 15 |
PRELU = 'PReLU',
|
|
|
|
| 18 |
SWIGLU = 'SwiGLU',
|
| 19 |
SIGMOID = 'Sigmoid',
|
| 20 |
TANH = 'Tanh',
|
| 21 |
+
SOFTPLUS = 'Softplus', // New
|
| 22 |
+
SOFTSIGN = 'Softsign', // New
|
| 23 |
MAXPOOL = 'MaxPool2D',
|
| 24 |
MAXPOOL3D = 'MaxPool3D',
|
| 25 |
AVGPOOL = 'AvgPool2D',
|
|
|
|
| 29 |
PIXEL_SHUFFLE = 'PixelShuffle',
|
| 30 |
DROPOUT = 'Dropout',
|
| 31 |
DROPPATH = 'DropPath',
|
| 32 |
+
SPATIAL_DROPOUT = 'SpatialDropout', // New
|
| 33 |
BATCHNORM = 'BatchNorm2D',
|
| 34 |
GROUPNORM = 'GroupNorm',
|
| 35 |
LAYERNORM = 'LayerNorm',
|
|
|
|
| 58 |
SAM_PROMPT_ENCODER = 'SamPromptEncoder',
|
| 59 |
SAM_MASK_DECODER = 'SamMaskDecoder',
|
| 60 |
|
| 61 |
+
// TensorFlow / Keras Preprocessing
|
| 62 |
+
RESCALING = 'Rescaling',
|
| 63 |
+
RESIZING = 'Resizing',
|
| 64 |
+
CENTER_CROP = 'CenterCrop',
|
| 65 |
+
RANDOM_FLIP = 'RandomFlip',
|
| 66 |
+
RANDOM_ROTATION = 'RandomRotation',
|
| 67 |
+
RANDOM_ZOOM = 'RandomZoom',
|
| 68 |
+
RANDOM_CONTRAST = 'RandomContrast',
|
| 69 |
+
TEXT_VECTORIZATION = 'TextVectorization',
|
| 70 |
+
NORMALIZATION_LAYER = 'NormalizationLayer', // Keras style mean/var
|
| 71 |
+
DISCRETIZATION = 'Discretization',
|
| 72 |
+
CATEGORY_ENCODING = 'CategoryEncoding',
|
| 73 |
+
|
| 74 |
// YOLO / Detection
|
| 75 |
C2F_BLOCK = 'C2fBlock',
|
| 76 |
SPPF_BLOCK = 'SPPFBlock',
|
|
|
|
| 156 |
|
| 157 |
CONCAT = 'Concat',
|
| 158 |
ADD = 'Add',
|
| 159 |
+
SUBTRACT = 'Subtract', // New
|
| 160 |
+
MULTIPLY = 'Multiply', // New
|
| 161 |
+
AVERAGE = 'Average', // New
|
| 162 |
+
MAXIMUM = 'Maximum', // New
|
| 163 |
+
MINIMUM = 'Minimum', // New
|
| 164 |
+
DOT = 'Dot', // New
|
| 165 |
+
|
| 166 |
OUTPUT = 'Output',
|
| 167 |
CUSTOM = 'CustomLayer',
|
| 168 |
+
LAMBDA = 'Lambda', // New
|
| 169 |
IDENTITY = 'Identity'
|
| 170 |
}
|
| 171 |
|
|
|
|
| 182 |
type: LayerType;
|
| 183 |
label: string;
|
| 184 |
description: string;
|
| 185 |
+
category: 'Core' | 'Convolution' | 'Preprocessing' | 'Recurrent' | 'Normalization' | 'Transformer' | 'GenAI' | 'Utility' | 'Merge' | 'Detection' | 'Audio' | '3D' | 'OCR' | 'Robotics' | 'Video' | 'Graph' | 'Physics' | 'Spiking' | 'RL' | 'Advanced';
|
| 186 |
parameters: LayerParameter[];
|
| 187 |
}
|
| 188 |
|