Run this model with HF Jobs

Run cyberagent/layerd-birefnet on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/cyberagent/layerd-birefnet. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/cyberagent/layerd-birefnet on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

LayerD BiRefNet Matting Module

arxiv paper

This repository contains the code and model weights for the matting module in LayerD [ICCV'25], a layer decomposition framework for graphic design images. The model in this repository is intended to be used as a part of the original LayerD github repository. Please visit https://github.com/CyberAgentAILab/LayerD for more information.

teaser

The model architecture code is based on the BiRefNet repository. We thank the authors for releasing their high-quality matting model.

Usage

This repository is intended for use with LayerD, so we recommend following the instructions in the LayerD repository.

For reference, the original LayerD uses this model as follows:

from transformers import AutoModelForImageSegmentation
birefnet = AutoModelForImageSegmentation.from_pretrained('cyberagent/layerd-birefnet', trust_remote_code=True)

License

This repository is released under the Apache-2.0 license, the same as the LayerD repository. The original BiRefNet is released under the MIT license.

Citation

@inproceedings{suzuki2025layerd,
  title={LayerD: Decomposing Raster Graphic Designs into Layers},
  author={Suzuki, Tomoyuki and Liu, Kang-Jun and Inoue, Naoto and Yamaguchi, Kota},
  booktitle={ICCV},
  year={2025}
}
Downloads last month
4,165
Safetensors
Model size
0.2B params
Tensor type
I64
Β·
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for cyberagent/layerd-birefnet

Quantizations
1 model

Space using cyberagent/layerd-birefnet 1

Paper for cyberagent/layerd-birefnet