Skip to content

UniBester/SAGE-Diffusion

Repository files navigation

The Diffusion Version of SAGE

Preparation

Follow the instructions in w-plus-adapter to train the generator and e4e encoder. Then, obtain the embeddings of the training images.

Calcultae the class embeddings of the seen categories:

python calculate_class_embeddings.py

Training

Modify the paths in train_sage.sh to your own path.

sh train_sage.sh

Inference

To inference on a single image:

python inference_sage.py --input_path <IMAGE PATH>

Acknowledgement

This project is built based on the excellent w-plus-adapter.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published