Update README.md
Browse files
README.md
CHANGED
@@ -1,6 +1,34 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
tags:
|
4 |
- scene text erase
|
5 |
- poster text erase
|
6 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
license: apache-2.0
|
3 |
tags:
|
4 |
- scene text erase
|
5 |
- poster text erase
|
6 |
+
---
|
7 |
+
|
8 |
+
# Self-supervised Text Erasing Model (STE)
|
9 |
+
Paper: [https://arxiv.org/abs/2204.12743](https://arxiv.org/abs/2204.12743)<br/>
|
10 |
+
Project Page: [https://github.com/alimama-creative/Self-supervised-Text-Erasing](https://github.com/alimama-creative/Self-supervised-Text-Erasing)<br/>
|
11 |
+
|
12 |
+
## Description
|
13 |
+
The checkpoints are trained from the posterErase dataset. There are two versions with different training mechanism.
|
14 |
+
|
15 |
+
Self-supervised Text Trasing: To use it, please download from this page, and put it under './checkpoints/erasenet/ste/best_net_G.pth'
|
16 |
+
|
17 |
+
Finetuning after STE : To use it, please download from this page, and put it under './checkpoints/erasenet/ste/best_net_G.pth'
|
18 |
+
|
19 |
+
## Usage
|
20 |
+
First, download the github project and install the python package.
|
21 |
+
```bash
|
22 |
+
git clone https://github.com/alimama-creative/Self-supervised-Text-Erasing.git
|
23 |
+
pip install -r requirements.txt
|
24 |
+
```
|
25 |
+
|
26 |
+
Then, follow the command line provied in the github to run the inference code.
|
27 |
+
|
28 |
+
```bash
|
29 |
+
python test.py --dataset_mode items --dataroot ./examples/poster --model erasenet --name ft --which_epoch best # inferece with the ste model on poster
|
30 |
+
|
31 |
+
python test.py --dataset_mode items --dataroot ./examples/poster --model erasenet --name ste --which_epoch best # inferece with the finetuned model model on poster
|
32 |
+
|
33 |
+
```
|
34 |
+
|