Skip to content

Image Pipeline Playground

feat(frontend): add weather, noise/blur, and geometry Albu templates

Mohammad Rajaei75ef0149c440
diff --git a/backend/examples/albumentations_geometry.json b/backend/examples/albumentations_geometry.json
new file mode 100644
index 0000000..675026e
--- /dev/null
+++ b/backend/examples/albumentations_geometry.json
@@ -0,0 +1,92 @@
+{
+ "version": 1,
+ "name": "albumentations-geometry",
+ "description": "Annotations with Albumentations rotate then affine — dual targets stay synced.",
+ "seed": 0,
+ "sampleCount": 1,
+ "graph": {
+ "nodes": [
+ {
+ "id": "load-1",
+ "type": "load_image",
+ "params": { "path": "examples/lena.png" },
+ "position": { "x": 0, "y": 80 }
+ },
+ {
+ "id": "ann-1",
+ "type": "annotations",
+ "params": {
+ "bboxes_json": "[[180, 80, 380, 320, \"face\"]]",
+ "keypoints_json": "[[230, 180], [320, 180], [275, 250]]"
+ },
+ "position": { "x": 0, "y": 320 }
+ },
+ {
+ "id": "rotate-1",
+ "type": "albu_rotate",
+ "params": {
+ "limit": 25,
+ "border_mode": "constant",
+ "p": 1.0
+ },
+ "position": { "x": 280, "y": 120 }
+ },
+ {
+ "id": "affine-1",
+ "type": "albu_affine",
+ "params": {
+ "scale": 1.05,
+ "translate_percent": 0.08,
+ "rotate": 8,
+ "shear": 6,
+ "p": 1.0
+ },
+ "position": { "x": 560, "y": 120 }
+ }
+ ],
+ "edges": [
+ {
+ "id": "e-img-rotate",
+ "source": "load-1",
+ "source_port": "image",
+ "target": "rotate-1",
+ "target_port": "image"
+ },
+ {
+ "id": "e-bbox-rotate",
+ "source": "ann-1",
+ "source_port": "bboxes",
+ "target": "rotate-1",
+ "target_port": "bboxes"
+ },
+ {
+ "id": "e-kp-rotate",
+ "source": "ann-1",
+ "source_port": "keypoints",
+ "target": "rotate-1",
+ "target_port": "keypoints"
+ },
+ {
+ "id": "e-img-affine",
+ "source": "rotate-1",
+ "source_port": "image",
+ "target": "affine-1",
+ "target_port": "image"
+ },
+ {
+ "id": "e-bbox-affine",
+ "source": "rotate-1",
+ "source_port": "bboxes",
+ "target": "affine-1",
+ "target_port": "bboxes"
+ },
+ {
+ "id": "e-kp-affine",
+ "source": "rotate-1",
+ "source_port": "keypoints",
+ "target": "affine-1",
+ "target_port": "keypoints"
+ }
+ ]
+ }
+}
diff --git a/backend/examples/albumentations_noise_blur.json b/backend/examples/albumentations_noise_blur.json
new file mode 100644
index 0000000..9d525ee
--- /dev/null
+++ b/backend/examples/albumentations_noise_blur.json
@@ -0,0 +1,50 @@
+{
+ "version": 1,
+ "name": "albumentations-noise-blur",
+ "description": "Albumentations Gaussian noise then motion blur — sensor / camera shake look.",
+ "seed": 0,
+ "sampleCount": 1,
+ "graph": {
+ "nodes": [
+ {
+ "id": "load-1",
+ "type": "load_image",
+ "params": { "path": "examples/lena.png" },
+ "position": { "x": 0, "y": 0 }
+ },
+ {
+ "id": "noise-1",
+ "type": "albu_gauss_noise",
+ "params": {
+ "std_min": 0.15,
+ "std_max": 0.35,
+ "per_channel": "true",
+ "p": 1.0
+ },
+ "position": { "x": 260, "y": 0 }
+ },
+ {
+ "id": "blur-1",
+ "type": "albu_motion_blur",
+ "params": { "blur_limit": 9, "p": 1.0 },
+ "position": { "x": 520, "y": 0 }
+ }
+ ],
+ "edges": [
+ {
+ "id": "e1",
+ "source": "load-1",
+ "source_port": "image",
+ "target": "noise-1",
+ "target_port": "image"
+ },
+ {
+ "id": "e2",
+ "source": "noise-1",
+ "source_port": "image",
+ "target": "blur-1",
+ "target_port": "image"
+ }
+ ]
+ }
+}
diff --git a/backend/examples/albumentations_weather.json b/backend/examples/albumentations_weather.json
new file mode 100644
index 0000000..942869f
--- /dev/null
+++ b/backend/examples/albumentations_weather.json
@@ -0,0 +1,50 @@
+{
+ "version": 1,
+ "name": "albumentations-weather",
+ "description": "Albumentations fog then rain — synthetic weather degradation.",
+ "seed": 0,
+ "sampleCount": 1,
+ "graph": {
+ "nodes": [
+ {
+ "id": "load-1",
+ "type": "load_image",
+ "params": { "path": "examples/lena.png" },
+ "position": { "x": 0, "y": 0 }
+ },
+ {
+ "id": "fog-1",
+ "type": "albu_random_fog",
+ "params": {
+ "fog_coef_min": 0.25,
+ "fog_coef_max": 0.55,
+ "alpha_coef": 0.08,
+ "p": 1.0
+ },
+ "position": { "x": 260, "y": 0 }
+ },
+ {
+ "id": "rain-1",
+ "type": "albu_random_rain",
+ "params": { "p": 1.0 },
+ "position": { "x": 520, "y": 0 }
+ }
+ ],
+ "edges": [
+ {
+ "id": "e1",
+ "source": "load-1",
+ "source_port": "image",
+ "target": "fog-1",
+ "target_port": "image"
+ },
+ {
+ "id": "e2",
+ "source": "fog-1",
+ "source_port": "image",
+ "target": "rain-1",
+ "target_port": "image"
+ }
+ ]
+ }
+}
diff --git a/frontend/public/examples/albumentations_geometry.json b/frontend/public/examples/albumentations_geometry.json
new file mode 100644
index 0000000..675026e
--- /dev/null
+++ b/frontend/public/examples/albumentations_geometry.json
@@ -0,0 +1,92 @@
+{
+ "version": 1,
+ "name": "albumentations-geometry",
+ "description": "Annotations with Albumentations rotate then affine — dual targets stay synced.",
+ "seed": 0,
+ "sampleCount": 1,
+ "graph": {
+ "nodes": [
+ {
+ "id": "load-1",
+ "type": "load_image",
+ "params": { "path": "examples/lena.png" },
+ "position": { "x": 0, "y": 80 }
+ },
+ {
+ "id": "ann-1",
+ "type": "annotations",
+ "params": {
+ "bboxes_json": "[[180, 80, 380, 320, \"face\"]]",
+ "keypoints_json": "[[230, 180], [320, 180], [275, 250]]"
+ },
+ "position": { "x": 0, "y": 320 }
+ },
+ {
+ "id": "rotate-1",
+ "type": "albu_rotate",
+ "params": {
+ "limit": 25,
+ "border_mode": "constant",
+ "p": 1.0
+ },
+ "position": { "x": 280, "y": 120 }
+ },
+ {
+ "id": "affine-1",
+ "type": "albu_affine",
+ "params": {
+ "scale": 1.05,
+ "translate_percent": 0.08,
+ "rotate": 8,
+ "shear": 6,
+ "p": 1.0
+ },
+ "position": { "x": 560, "y": 120 }
+ }
+ ],
+ "edges": [
+ {
+ "id": "e-img-rotate",
+ "source": "load-1",
+ "source_port": "image",
+ "target": "rotate-1",
+ "target_port": "image"
+ },
+ {
+ "id": "e-bbox-rotate",
+ "source": "ann-1",
+ "source_port": "bboxes",
+ "target": "rotate-1",
+ "target_port": "bboxes"
+ },
+ {
+ "id": "e-kp-rotate",
+ "source": "ann-1",
+ "source_port": "keypoints",
+ "target": "rotate-1",
+ "target_port": "keypoints"
+ },
+ {
+ "id": "e-img-affine",
+ "source": "rotate-1",
+ "source_port": "image",
+ "target": "affine-1",
+ "target_port": "image"
+ },
+ {
+ "id": "e-bbox-affine",
+ "source": "rotate-1",
+ "source_port": "bboxes",
+ "target": "affine-1",
+ "target_port": "bboxes"
+ },
+ {
+ "id": "e-kp-affine",
+ "source": "rotate-1",
+ "source_port": "keypoints",
+ "target": "affine-1",
+ "target_port": "keypoints"
+ }
+ ]
+ }
+}
diff --git a/frontend/public/examples/albumentations_noise_blur.json b/frontend/public/examples/albumentations_noise_blur.json
new file mode 100644
index 0000000..9d525ee
--- /dev/null
+++ b/frontend/public/examples/albumentations_noise_blur.json
@@ -0,0 +1,50 @@
+{
+ "version": 1,
+ "name": "albumentations-noise-blur",
+ "description": "Albumentations Gaussian noise then motion blur — sensor / camera shake look.",
+ "seed": 0,
+ "sampleCount": 1,
+ "graph": {
+ "nodes": [
+ {
+ "id": "load-1",
+ "type": "load_image",
+ "params": { "path": "examples/lena.png" },
+ "position": { "x": 0, "y": 0 }
+ },
+ {
+ "id": "noise-1",
+ "type": "albu_gauss_noise",
+ "params": {
+ "std_min": 0.15,
+ "std_max": 0.35,
+ "per_channel": "true",
+ "p": 1.0
+ },
+ "position": { "x": 260, "y": 0 }
+ },
+ {
+ "id": "blur-1",
+ "type": "albu_motion_blur",
+ "params": { "blur_limit": 9, "p": 1.0 },
+ "position": { "x": 520, "y": 0 }
+ }
+ ],
+ "edges": [
+ {
+ "id": "e1",
+ "source": "load-1",
+ "source_port": "image",
+ "target": "noise-1",
+ "target_port": "image"
+ },
+ {
+ "id": "e2",
+ "source": "noise-1",
+ "source_port": "image",
+ "target": "blur-1",
+ "target_port": "image"
+ }
+ ]
+ }
+}
diff --git a/frontend/public/examples/albumentations_weather.json b/frontend/public/examples/albumentations_weather.json
new file mode 100644
index 0000000..942869f
--- /dev/null
+++ b/frontend/public/examples/albumentations_weather.json
@@ -0,0 +1,50 @@
+{
+ "version": 1,
+ "name": "albumentations-weather",
+ "description": "Albumentations fog then rain — synthetic weather degradation.",
+ "seed": 0,
+ "sampleCount": 1,
+ "graph": {
+ "nodes": [
+ {
+ "id": "load-1",
+ "type": "load_image",
+ "params": { "path": "examples/lena.png" },
+ "position": { "x": 0, "y": 0 }
+ },
+ {
+ "id": "fog-1",
+ "type": "albu_random_fog",
+ "params": {
+ "fog_coef_min": 0.25,
+ "fog_coef_max": 0.55,
+ "alpha_coef": 0.08,
+ "p": 1.0
+ },
+ "position": { "x": 260, "y": 0 }
+ },
+ {
+ "id": "rain-1",
+ "type": "albu_random_rain",
+ "params": { "p": 1.0 },
+ "position": { "x": 520, "y": 0 }
+ }
+ ],
+ "edges": [
+ {
+ "id": "e1",
+ "source": "load-1",
+ "source_port": "image",
+ "target": "fog-1",
+ "target_port": "image"
+ },
+ {
+ "id": "e2",
+ "source": "fog-1",
+ "source_port": "image",
+ "target": "rain-1",
+ "target_port": "image"
+ }
+ ]
+ }
+}
diff --git a/frontend/src/workflow/templates.ts b/frontend/src/workflow/templates.ts
index 20fc92c..ddc698a 100644
--- a/frontend/src/workflow/templates.ts
+++ b/frontend/src/workflow/templates.ts
@@ -70,6 +70,30 @@ export const WORKFLOW_TEMPLATES: WorkflowTemplate[] = [
category: 'augment',
steps: ['Load', 'Annotate', 'Jitter', 'Flip'],
},
+ {
+ id: 'albumentations_weather',
+ name: 'Albu Weather',
+ description: 'Synthetic fog then rain for weather degradation.',
+ path: '/examples/albumentations_weather.json',
+ category: 'augment',
+ steps: ['Load', 'Fog', 'Rain'],
+ },
+ {
+ id: 'albumentations_noise_blur',
+ name: 'Albu Noise & Blur',
+ description: 'Gaussian noise then motion blur — sensor / shake look.',
+ path: '/examples/albumentations_noise_blur.json',
+ category: 'augment',
+ steps: ['Load', 'Noise', 'Motion'],
+ },
+ {
+ id: 'albumentations_geometry',
+ name: 'Albu Geometry',
+ description: 'Rotate + affine with annotations kept in sync.',
+ path: '/examples/albumentations_geometry.json',
+ category: 'augment',
+ steps: ['Load', 'Annotate', 'Rotate', 'Affine'],
+ },
{
id: 'hsv_color_mask',
name: 'HSV Color Mask',