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.
The model architecture code is based on the
BiRefNet repository. We thank the authors for releasing their high-quality matting model.
This repository is intended for use with LayerD, so we recommend following the instructions in the
LayerD repository.
1from transformers import AutoModelForImageSegmentation
2birefnet = AutoModelForImageSegmentation.from_pretrained('cyberagent/layerd-birefnet', trust_remote_code=True)
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.
1@inproceedings{suzuki2025layerd,
2 title={LayerD: Decomposing Raster Graphic Designs into Layers},
3 author={Suzuki, Tomoyuki and Liu, Kang-Jun and Inoue, Naoto and Yamaguchi, Kota},
4 booktitle={ICCV},
5 year={2025}
6}