Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SmilesDZgk/S-CFG
https://github.com/SmilesDZgk/S-CFG
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/SmilesDZgk/S-CFG
- Owner: SmilesDZgk
- Created: 2024-03-25T03:13:00.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-03-25T06:27:21.000Z (8 months ago)
- Last Synced: 2024-08-01T18:37:17.260Z (3 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-diffusion-categorized - [Code
README
## Semantic-aware Classifier-Free Guidance (S-CFG)
This is the pytorch implementation of the paper "Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidance"### Setup
Our code builds on the reuqirement of the offical [Stable Diffusion repository](https://huggingface.co/runwayml/stable-diffusion-v1-5) and [DeepFloyd IF repository](https://huggingface.co/DeepFloyd/IF-I-M-v1.0) in Hugging Face.### Usage
To generate an image, you can simply run the script by> cd IF \
> python IF.pyor
>cd sd \
>python sd.pyThe detailed settings can be found in the file `IF.py` and `sd.py`, where the prompt, and seed can be specified.
### Reference
If you find our methods or code helpful, please kindly cite the paper:
```angular2
@inproceedings{shen2024rethinking,
title={Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidancee},
author={Shen, Dazhong and Song, Guanglu and Xue, Zeyue and Wang, Fu-Yun and Liu, Yu},
booktitle={Proceedings of The IEEE/CVF Computer Vision and Pattern Recognition Conference (CVPR)},
year={2024}
}
```