Skip to content

haoranD/Pixel-Linguist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Linguist

Offical Repo of paper Pixel Sentence Representation Learning

Installation

conda create -n pixel python=3.9 -y && conda activate pixel

package install

conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
conda install -c conda-forge pycairo pygobject manimpango scikit-learn
pip install -r requirements.txt
pip install datasets
pip install -e .

Fallback fonts downloading

python scripts/data/download_fallback_fonts.py ‘data/fallback_fonts’

Finetune Pixel Sentence

visual alignment step:

bash run_bash/0-run_unsup.sh

topical alignment step:

bash run_bash/1-run_wikispan.sh

reasoning alignment step:

bash run_bash/2-run_allnli_finetune.sh

multilingual transfer step:

bash run_bash/3-run_allnli-pm.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.0%
  • Shell 2.0%