Downloads · 30 days
0
alimama-creative/Self-Supervised-Text-Erasing
Self-Supervised-Text-Erasing is a machine learning model from alimama-creative. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Paper: https://arxiv.org/abs/2204.12743<br/ Project Page: https://github.com/alimama-creative/Self-supervised-Text-Erasing<br/
Downloads · 30 days
0
Access
Public
Updated Sep 12, 2024
Repo size
158 MB
Likes
4
Public
Click a slice to open those files.
.pth158 MB · 100%
From the Hugging Face model README
Paper: https://arxiv.org/abs/2204.12743<br/> Project Page: https://github.com/alimama-creative/Self-supervised-Text-Erasing<br/>
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'
First, download the github project and install the python package.
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.
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