Skip to content

Image Pipeline Playground

chore: replace lena sample image with anna-portrait

Mohammad Rajaei8638ebd9d0d6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9b3c716..ec32dc4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -93,7 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Renamed **Save as…** to **Export…**; first-time **Save** only persists to the library (no file download)
- Renamed run control **Samples** → **Iterations** (how many times to run the full pipeline over the image set)
- Save Image default destination is the workflow **output** folder (no nested `downloads/` directory)
-- Load Images UI is picker-only (no editable path field); templates use `"sample": "lena"` instead of `path`
+- Load Images UI is picker-only (no editable path field); templates use `"sample": "anna-portrait"` instead of `path`
- Save Image folder selection uses a folder picker rather than a free-text path input
- Example workflows updated to the sample-marker format
diff --git a/backend/app/api/routes.py b/backend/app/api/routes.py
index ef39cd7..43837b9 100644
--- a/backend/app/api/routes.py
+++ b/backend/app/api/routes.py
@@ -52,17 +52,17 @@ def _allowed_extension(filename: str) -> bool:
return suffix in {ext.lower() for ext in IMAGE_EXTENSIONS}
-def _sample_lena_path() -> Path | None:
- """Locate bundled Lena used by example templates."""
+def _sample_anna_portrait_path() -> Path | None:
+ """Locate bundled anna-portrait used by example templates."""
candidates = [
- Path(__file__).resolve().parents[2] / "examples" / "lena.png",
- Path.cwd() / "examples" / "lena.png",
+ Path(__file__).resolve().parents[2] / "examples" / "anna-portrait.png",
+ Path.cwd() / "examples" / "anna-portrait.png",
]
if getattr(sys, "frozen", False):
- candidates.append(Path(sys.executable).resolve().parent / "examples" / "lena.png")
+ candidates.append(Path(sys.executable).resolve().parent / "examples" / "anna-portrait.png")
meipass = getattr(sys, "_MEIPASS", None)
if meipass:
- candidates.append(Path(meipass) / "examples" / "lena.png")
+ candidates.append(Path(meipass) / "examples" / "anna-portrait.png")
for path in candidates:
if path.is_file():
return path
@@ -79,16 +79,16 @@ def list_nodes() -> list[NodeMetadata]:
@router.get("/sample-image")
def sample_image() -> FileResponse:
"""Return the bundled sample image for example workflows."""
- path = _sample_lena_path()
+ path = _sample_anna_portrait_path()
if path is None:
raise HTTPException(status_code=404, detail="Sample image not found")
- return FileResponse(path, media_type="image/png", filename="lena.png")
+ return FileResponse(path, media_type="image/png", filename="anna-portrait.png")
@router.post("/assets/sample", response_model=RegisterAssetsResponse)
def register_sample_image() -> RegisterAssetsResponse:
"""Register the bundled sample image as an asset batch (no copy)."""
- path = _sample_lena_path()
+ path = _sample_anna_portrait_path()
if path is None:
raise HTTPException(status_code=404, detail="Sample image not found")
try:
diff --git a/backend/app/nodes/io.py b/backend/app/nodes/io.py
index 1b977fb..9cf0977 100644
--- a/backend/app/nodes/io.py
+++ b/backend/app/nodes/io.py
@@ -75,7 +75,7 @@ class LoadImageNode(BaseNode):
"sample",
"Sample",
"",
- description="Optional bundled sample key (e.g. lena) for templates",
+ description="Optional bundled sample key (e.g. anna-portrait) for templates",
),
]
diff --git a/backend/examples/albumentations_augment.json b/backend/examples/albumentations_augment.json
index 394aa36..6ff7009 100644
--- a/backend/examples/albumentations_augment.json
+++ b/backend/examples/albumentations_augment.json
@@ -1,7 +1,7 @@
{
"version": 1,
"name": "albumentations-augment",
- "description": "Load Lena with annotations, apply Albumentations color jitter then horizontal flip (synced bboxes/keypoints).",
+ "description": "Load anna-portrait with annotations, apply Albumentations color jitter then horizontal flip (synced bboxes/keypoints).",
"seed": 0,
"sampleCount": 1,
"graph": {
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 40 }
},
{
diff --git a/backend/examples/albumentations_geometry.json b/backend/examples/albumentations_geometry.json
index 2fa188a..701a7dd 100644
--- a/backend/examples/albumentations_geometry.json
+++ b/backend/examples/albumentations_geometry.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 40 }
},
{
diff --git a/backend/examples/albumentations_noise_blur.json b/backend/examples/albumentations_noise_blur.json
index 627b719..544bed0 100644
--- a/backend/examples/albumentations_noise_blur.json
+++ b/backend/examples/albumentations_noise_blur.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 40 }
},
{
diff --git a/backend/examples/albumentations_weather.json b/backend/examples/albumentations_weather.json
index 36baef6..790264a 100644
--- a/backend/examples/albumentations_weather.json
+++ b/backend/examples/albumentations_weather.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 40 }
},
{
diff --git a/backend/examples/anna-portrait.png b/backend/examples/anna-portrait.png
new file mode 100644
index 0000000..fe92b66
Binary files /dev/null and b/backend/examples/anna-portrait.png differ
diff --git a/backend/examples/blur_canny.json b/backend/examples/blur_canny.json
index 2884698..b737b29 100644
--- a/backend/examples/blur_canny.json
+++ b/backend/examples/blur_canny.json
@@ -1,7 +1,7 @@
{
"version": 1,
"name": "blur-and-canny",
- "description": "Load Lena, blur it, then extract Canny edges.",
+ "description": "Load anna-portrait, blur it, then extract Canny edges.",
"seed": 0,
"sampleCount": 1,
"graph": {
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/backend/examples/clahe_sharpen.json b/backend/examples/clahe_sharpen.json
index 0809421..6b8141d 100644
--- a/backend/examples/clahe_sharpen.json
+++ b/backend/examples/clahe_sharpen.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/backend/examples/contour_detect.json b/backend/examples/contour_detect.json
index 51b7083..d40089b 100644
--- a/backend/examples/contour_detect.json
+++ b/backend/examples/contour_detect.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/backend/examples/hist_equalize.json b/backend/examples/hist_equalize.json
index 1b8fc1f..9638599 100644
--- a/backend/examples/hist_equalize.json
+++ b/backend/examples/hist_equalize.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/backend/examples/hsv_color_mask.json b/backend/examples/hsv_color_mask.json
index 7d5f8f3..b07152f 100644
--- a/backend/examples/hsv_color_mask.json
+++ b/backend/examples/hsv_color_mask.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 80 }
},
{
diff --git a/backend/examples/kmeans_palette.json b/backend/examples/kmeans_palette.json
index 3046bb6..82c6bf6 100644
--- a/backend/examples/kmeans_palette.json
+++ b/backend/examples/kmeans_palette.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/backend/examples/lena.png b/backend/examples/lena.png
deleted file mode 100644
index 59ef68a..0000000
Binary files a/backend/examples/lena.png and /dev/null differ
diff --git a/backend/examples/morphology_cleanup.json b/backend/examples/morphology_cleanup.json
index 0b7057c..16b5ea6 100644
--- a/backend/examples/morphology_cleanup.json
+++ b/backend/examples/morphology_cleanup.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/backend/tests/test_io_save_image.py b/backend/tests/test_io_save_image.py
index 8a3be23..c749f50 100644
--- a/backend/tests/test_io_save_image.py
+++ b/backend/tests/test_io_save_image.py
@@ -25,10 +25,10 @@ def test_resolve_save_filename_templates() -> None:
name = resolve_save_filename(
"{filename}_{index}_{time}.png",
index=2,
- filename="lena",
+ filename="anna-portrait",
when=when,
)
- assert name == "lena_2_20260730_225501.png"
+ assert name == "anna-portrait_2_20260730_225501.png"
def test_resolve_save_filename_auto_index_when_missing() -> None:
diff --git a/backend/tests/test_uploads.py b/backend/tests/test_uploads.py
index 720be19..0beb6f2 100644
--- a/backend/tests/test_uploads.py
+++ b/backend/tests/test_uploads.py
@@ -9,7 +9,7 @@ from fastapi.testclient import TestClient
from app.main import app
-def test_sample_image_returns_lena() -> None:
+def test_sample_image_returns_anna_portrait() -> None:
client = TestClient(app)
response = client.get("/api/sample-image")
assert response.status_code == 200
diff --git a/frontend/public/examples/albumentations_augment.json b/frontend/public/examples/albumentations_augment.json
index 394aa36..6ff7009 100644
--- a/frontend/public/examples/albumentations_augment.json
+++ b/frontend/public/examples/albumentations_augment.json
@@ -1,7 +1,7 @@
{
"version": 1,
"name": "albumentations-augment",
- "description": "Load Lena with annotations, apply Albumentations color jitter then horizontal flip (synced bboxes/keypoints).",
+ "description": "Load anna-portrait with annotations, apply Albumentations color jitter then horizontal flip (synced bboxes/keypoints).",
"seed": 0,
"sampleCount": 1,
"graph": {
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 40 }
},
{
diff --git a/frontend/public/examples/albumentations_geometry.json b/frontend/public/examples/albumentations_geometry.json
index 2fa188a..701a7dd 100644
--- a/frontend/public/examples/albumentations_geometry.json
+++ b/frontend/public/examples/albumentations_geometry.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 40 }
},
{
diff --git a/frontend/public/examples/albumentations_noise_blur.json b/frontend/public/examples/albumentations_noise_blur.json
index 627b719..544bed0 100644
--- a/frontend/public/examples/albumentations_noise_blur.json
+++ b/frontend/public/examples/albumentations_noise_blur.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 40 }
},
{
diff --git a/frontend/public/examples/albumentations_weather.json b/frontend/public/examples/albumentations_weather.json
index 36baef6..790264a 100644
--- a/frontend/public/examples/albumentations_weather.json
+++ b/frontend/public/examples/albumentations_weather.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 40 }
},
{
diff --git a/frontend/public/examples/blur_canny.json b/frontend/public/examples/blur_canny.json
index 2884698..b737b29 100644
--- a/frontend/public/examples/blur_canny.json
+++ b/frontend/public/examples/blur_canny.json
@@ -1,7 +1,7 @@
{
"version": 1,
"name": "blur-and-canny",
- "description": "Load Lena, blur it, then extract Canny edges.",
+ "description": "Load anna-portrait, blur it, then extract Canny edges.",
"seed": 0,
"sampleCount": 1,
"graph": {
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/frontend/public/examples/clahe_sharpen.json b/frontend/public/examples/clahe_sharpen.json
index 0809421..6b8141d 100644
--- a/frontend/public/examples/clahe_sharpen.json
+++ b/frontend/public/examples/clahe_sharpen.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/frontend/public/examples/contour_detect.json b/frontend/public/examples/contour_detect.json
index 51b7083..d40089b 100644
--- a/frontend/public/examples/contour_detect.json
+++ b/frontend/public/examples/contour_detect.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/frontend/public/examples/custom_python_sepia.json b/frontend/public/examples/custom_python_sepia.json
index 23e6796..b86711a 100644
--- a/frontend/public/examples/custom_python_sepia.json
+++ b/frontend/public/examples/custom_python_sepia.json
@@ -1,7 +1,7 @@
{
"version": 1,
"name": "custom-python-sepia",
- "description": "Load Lena, then apply a sepia look via inline Custom Python (requires trust before Run).",
+ "description": "Load anna-portrait, then apply a sepia look via inline Custom Python (requires trust before Run).",
"seed": 0,
"sampleCount": 1,
"graph": {
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/frontend/public/examples/hist_equalize.json b/frontend/public/examples/hist_equalize.json
index 1b8fc1f..9638599 100644
--- a/frontend/public/examples/hist_equalize.json
+++ b/frontend/public/examples/hist_equalize.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/frontend/public/examples/hsv_color_mask.json b/frontend/public/examples/hsv_color_mask.json
index 7d5f8f3..b07152f 100644
--- a/frontend/public/examples/hsv_color_mask.json
+++ b/frontend/public/examples/hsv_color_mask.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 80 }
},
{
diff --git a/frontend/public/examples/kmeans_palette.json b/frontend/public/examples/kmeans_palette.json
index 3046bb6..82c6bf6 100644
--- a/frontend/public/examples/kmeans_palette.json
+++ b/frontend/public/examples/kmeans_palette.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/frontend/public/examples/morphology_cleanup.json b/frontend/public/examples/morphology_cleanup.json
index 0b7057c..16b5ea6 100644
--- a/frontend/public/examples/morphology_cleanup.json
+++ b/frontend/public/examples/morphology_cleanup.json
@@ -9,7 +9,7 @@
{
"id": "load-1",
"type": "load_image",
- "params": { "sample": "lena" },
+ "params": { "sample": "anna-portrait" },
"position": { "x": 0, "y": 0 }
},
{
diff --git a/frontend/src/workflow/materializeSampleImages.ts b/frontend/src/workflow/materializeSampleImages.ts
index 97425cd..9f55f0d 100644
--- a/frontend/src/workflow/materializeSampleImages.ts
+++ b/frontend/src/workflow/materializeSampleImages.ts
@@ -8,7 +8,7 @@ function needsSampleImage(params: Record<string, unknown>): boolean {
const batchId = String(params.asset_batch_id ?? '').trim()
if (batchId) return false
const sample = String(params.sample ?? '').trim().toLowerCase()
- if (sample === 'lena') return true
+ if (sample === 'anna-portrait') return true
// Legacy templates used path: examples/...
const path = String(params.path ?? '')
.replace(/\\/g, '/')
@@ -39,7 +39,7 @@ export async function materializeSampleImages(): Promise<void> {
// Share one registered batch across all sample Load Image nodes.
updateNodeParams(node.id, {
asset_batch_id: result.batch.id,
- sample: 'lena',
+ sample: 'anna-portrait',
})
setLocalPreviews(node.id, urls, files)
}
diff --git a/frontend/src/workflow/templates.ts b/frontend/src/workflow/templates.ts
index 3275d28..b09de56 100644
--- a/frontend/src/workflow/templates.ts
+++ b/frontend/src/workflow/templates.ts
@@ -35,7 +35,7 @@ export const WORKFLOW_TEMPLATES: WorkflowTemplate[] = [
{
id: 'blur_canny',
name: 'Blur & Canny',
- description: 'Load Lena, blur, then extract Canny edges.',
+ description: 'Load anna-portrait, blur, then extract Canny edges.',
path: '/examples/blur_canny.json',
category: 'edges',
steps: ['Load', 'Blur', 'Canny'],
@@ -124,7 +124,7 @@ export const WORKFLOW_TEMPLATES: WorkflowTemplate[] = [
id: 'custom_python_sepia',
name: 'Custom Python Sepia',
description:
- 'Load Lena, then apply a sepia look via inline Custom Python (requires trust before Run).',
+ 'Load anna-portrait, then apply a sepia look via inline Custom Python (requires trust before Run).',
path: '/examples/custom_python_sepia.json',
category: 'script',
steps: ['Load', 'Custom Python'],