Skip to content

Official Implementation of “Text Slider: Efficient and Plug-and-Play Continuous Concept Control for Image/Video Synthesis via LoRA Adapters" in WACV 2026.

Notifications You must be signed in to change notification settings

aiiu-lab/TextSlider

Repository files navigation

Text Slider: Efficient and Plug-and-Play Continuous Concept Control for Image/Video Synthesis via LoRA Adapters

WACV 2026

Pin-Yen Chiu, I-Sheng Fang, Jun-Cheng Chen

Research Center for Information Technology Innovation, Academia Sinica

Environment setup

conda create -n textslider python=3.10 -y
conda activate textslider
pip install -r requirements.txt

Inference

We provide ready-to-use notebooks so you can try Text Slider immediately:

We also include several pre-trained slider checkpoints in the models/ directory. Feel free to try with your own prompts and attributes!

Training

Generate Training Prompts

We follow the prompt-generation method from Concept Slider (see their GPT_prompt_helper.ipynb), which requires an OpenAI API key. If you prefer not to use the API, we provide a standalone system prompt in trainscript/prompt_generate.txt. Simply copy–paste it into ChatGPT, provide the attribute you want to train, and it will generate:

  • target
  • positive
  • negative
  • preservation

You can then use these to create a new prompt.yaml following our existing format.

Train a Slider

Below is an example for training an age slider.

First, move into the training directory:

cd trainscript

Then paste the text after "preservation" (generated from ChatGPT) into the --attributes argument:

python train_text_lora.py \
  --attributes "white race, black race, indian race, asian race, hispanic race ; male, female" \
  --name "ageslider" \
  --rank 4 \
  --alpha 1 \
  --config_file "data/config.yaml" \
  --prompts_file "data/prompts-age.yaml"

Citation

If you find our work useful, please consider cite this work as

@inproceedings{chiu2026textslider,
  title={Text Slider: Efficient and Plug-and-Play Continuous Concept Control for Image/Video Synthesis via LoRA Adapters},
  author={Pin-Yen Chiu and I-Sheng Fang and Jun-Cheng Chen},
  booktitle={IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
  year={2026}
}

About

Official Implementation of “Text Slider: Efficient and Plug-and-Play Continuous Concept Control for Image/Video Synthesis via LoRA Adapters" in WACV 2026.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published