Skip to content
 
 

Repository files navigation

Installation

conda env create -f environment.yml

``

Config

We use Hydra as configuration manager. To change any parameter, you can either modify the config.yaml file or pass it as a command line argument. For example, to change the project dataset to laion, you can run

    python run.py "project_dataset=laion"

For the prompt, do as follows

    python run.py "prompt=[an ice skater dancing]"

If you have multiple, just add them to the list

    python run.py "prompt=[an ice skater dancing, a cat on a skateboard]"

If you want to run multiple hyperparameter values, just use the -m or --multirun flag

    python run.py -m "project_dataset=laion,flickr" 

To run a grid search

sbatch --export=ALL,PROMPT_FILE=/leonardo_work/IscrC_MGNTC/dcrisost/implicit-inversion/dataset/stanislav.txt slurm/grid.slurm

About

Code for Implicit Inversion turns CLIP into a Decoder

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages