Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.

LayerD v0.1.0 - Initial Release

Latest

Choose a tag to compare

@kyamagu kyamagu released this 05 Jan 09:14
· 24 commits to main since this release
0292c51

LayerD v0.1.0 - Initial Release

This is the first official release of LayerD, a layer decomposition method that extracts editable layers from raster graphic design images.

Features

  • Layer Decomposition Pipeline: Two-stage iterative approach using BiRefNet for matting and LaMa for inpainting
  • Command-Line Interface: Easy-to-use CLI for single-file inference (layerd command)
  • Python API: Programmatic access to the LayerD pipeline
  • Batch Processing: Tools for processing multiple images
  • Training Support: Full training workflow with Hydra configuration
  • Evaluation Metrics: LayersEditDist, DTW, and per-layer metrics (RGBL1, AlphaIoU)
  • Dataset Generation: Tools for creating training datasets from Crello

Installation

pip install layerd

For development or additional features (training, dataset generation):

pip install layerd[all]

Quick Start

# Decompose an image into layers
layerd --input image.png --output-dir outputs/

What's Included

  • ✅ Numpy 2.0 compatibility
  • ✅ Bundled vendored dependencies for wheel distribution
  • ✅ Strict type checking with mypy
  • ✅ Comprehensive documentation in docs/ directory
  • ✅ CLI for single-file inference
  • ✅ Batch inference tools
  • ✅ Training and evaluation workflows

Documentation

See the docs/ directory for detailed documentation:

Requirements

  • Python >= 3.10
  • PyTorch >= 2.5.1
  • CUDA-compatible GPU recommended for inference and training

For the full list of dependencies, see pyproject.toml.