This repo is the official implementation of "Zero-shot Generative Linguistic Steganography".
- Create Conda environment and install the requirements:
conda create -n zgls python=3.10
conda activate zgls
#
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip install -r requirements.txt
pip install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu121/
- Compile external Python module:
pip install external_tools/zgls-utils
- Install pre-commit hooks:
pre-commit install
- Create a temp folder in HDD for storing and sharing files, for example:
# DO NOT copy directly!
mkdir -p $SHARE_FOLDER/zgls
ln -s $SHARE_FOLDER/zgls tmp_saves
ln -s $SHARE_FOLDER/datasets/imdb datasets/imdb
ln -s $SHARE_FOLDER/datasets/twitter datasets/twitter
Check datasets/ section for details.
See scripts/ section for details.
For details of metrics, steganalysis, and language evaluation, check evaluate/ section.
TBD.