Source: sources/0363/REG-b9c867cff57a/t2i_diffusers/README.md
SHA256: 4e7f1534b96d3b4e659581d838de8a03c4605b5ef6bd8d43279c33d37c8b1452
Read at: 2026-10-25T10:07:11.292233+00:00
1: ## Instructions
2: 
3: This repository builds upon the `diffusers` library and introduces modifications to support various types of guidance during denoising. Follow the steps below to reproduce our experiments:
4: 
5: 1. Create a new Python environment and install the `diffusers` library. This step is crucial because we will modify the source code of `diffusers`, ensuring that your existing environment remains unaffected.
6: 
7: 2. Replace the original `__call__` method in `pipeline_stable_diffusion.py` with the version provided in our repository located at `REG/diffusers/call_method.py`.
8: 
9: After completing the steps above, you can use `sample_ddp.py` to generate samples and `calculate_metric.py` to evaluate the CLIP and IS scores. We randomly select 5,000 captions from the COCO 2017 validation set as text prompts.
