---
title: Self-Supervised-Text-Erasing
canonical_url: "https://www.modelscope.cn/models/alimama-creative/Self-Supervised-Text-Erasing"
md_url: "https://www.modelscope.cn/models/alimama-creative/Self-Supervised-Text-Erasing.md"
repository: alimama-creative/Self-Supervised-Text-Erasing
last_updated: 2024-09-24
license: apache-2.0
downloads: 2096
stars: 2
tags:
  - "scene text erase"
  - "poster text erase"
---

# Self-Supervised-Text-Erasing

> Self-Supervised-Text-Erasing - alimama-creative 在 ModelScope 开源的模型。Self-supervised Text Erasing Model (STE) Paper: https://arxiv.org/abs/2204.12743 Project Page: https://github.com/alimama-creative/Self-supervised-Text-Erasing

alimama-creative/Self-Supervised-Text-Erasing 是 ModelScope 魔搭社区上的机器学习模型，采用 apache-2.0 许可。

- **Repository**: alimama-creative/Self-Supervised-Text-Erasing
- **License**: apache-2.0
- **Tags**: scene text erase, poster text erase
- **Downloads**: 2096
- **Stars**: 2
- **Last updated**: 2024-09-24

Source: https://www.modelscope.cn/models/alimama-creative/Self-Supervised-Text-Erasing

---

# Self-supervised Text Erasing Model (STE)
Paper: [https://arxiv.org/abs/2204.12743](https://arxiv.org/abs/2204.12743)<br/>
Project Page: [https://github.com/alimama-creative/Self-supervised-Text-Erasing](https://github.com/alimama-creative/Self-supervised-Text-Erasing)<br/>

## Description
The checkpoints are trained from the posterErase dataset. There are two versions with different training mechanism.

Self-supervised Text Trasing (ste_best_net_G.pth): To use it, please download from this page, and put it under './checkpoints/erasenet/ste/best_net_G.pth'

Finetuning after STE (ft_best_net_G.pth): To use it, please download from this page, and put it under './checkpoints/erasenet/ste/best_net_G.pth'

## Usage
First, download the github project and install the python package.
```bash
git clone https://github.com/alimama-creative/Self-supervised-Text-Erasing.git
pip install -r requirements.txt
```

Then, follow the command line provied in the github to run the inference code.

```bash
python test.py --dataset_mode items --dataroot ./examples/poster --model erasenet --name ft --which_epoch best  # inferece with the ste model on poster 

python test.py --dataset_mode items --dataroot ./examples/poster --model erasenet --name ste --which_epoch best # inferece with the finetuned model model on poster 

```
