Skip to content

ken4647/Detextr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detextr

Detextr is a tool for repainting styled text from images using Stable Diffusion with canny edge Control-Net and font style transfer.

Exhibition

basic usage for demo

  1. for the first time, install the required packages by running the following command in the terminal:
pip install -r requirements.txt
  1. (optional) we also provide a pre-trained Lora model for you to use. You can download it from here and place it in the weights directory.

  2. download pretrained models from TextEffects and the example image from exampe_image

  3. unzip the downloaded FET-GAN pre-trained model and place it in the weights directory.

  4. unzip the downloaded FET-GAN pre-trained model and place it in the workspace as the image_repos directory.

  5. now you should have a directory structure like this:

.
├── configs
├── fft
├── image_repos
├── models
├── networks
├── process
├── utils
└── weights
  1. run the following command in the terminal( for the first time, pre-trained diffusion model would be downloaded, which may take tens of minutes):
python detextr.py 1 1 [text]

such as:

python detextr.py 1 1 A
  1. the result will be saved as result.png in the workspace.

Related works and Thanks

About

change word in image via Diffusion model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published