Skip to content

tgim4253/image-selector

Repository files navigation

NPY Generator — Synthetic Shape Image Generator

Tauri + React app for generating synthetic .npy image arrays with controllable shapes, value ranges, and boundary profiles.

Features

  • Shape types: circle, ellipse, line, bow (arc)
  • Range-based parameters (sizes, angles, positions, values)
  • Boundary functions: tanh-sigmoid, hard-step, smoothstep, logistic
  • Instant preview (PNG) + metadata
  • Batch generation with run folder + manifest
  • Preset save/load using Tauri Store

Dev

pnpm install
pnpm dev

Build

pnpm build

DMG bundling is disabled by default. See apps/desktop/src-tauri/tauri.conf.json to enable it.

Output Format

Generated data uses .npy (NumPy) with int32 dtype. Optionally, a normalized .png can be saved for debugging.

Run Folder Structure

output_root/
  run_YYYYMMDD_HHMMSS/
    circle/
    ellipse/
    line/
    bow/
    manifest.jsonl

File Naming

{type}__{presetName}__seed{seed}__000001.npy

Manifest (manifest.jsonl)

One JSON record per line containing:

  • file (relative path)
  • shape type
  • preset name
  • seed + index
  • sampled parameters, positions, spacing, boundary config
  • image size

Verify in Python

A helper script is included:

python scripts/verify_npy.py /path/to/file.npy

Example output:

shape=(64, 64) dtype=int32 min=-100000 max=140000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published