-[](https://compvis.github.io/CleanDIFT/)
-[](https://compvis.github.io/CleanDIFT/static/pdfs/cleandift.pdf)
+[](https://compvis.github.io/cleandift/)
+[](https://compvis.github.io/cleandift/static/pdfs/cleandift.pdf)
[](https://huggingface.co/CompVis/cleandift)
-
-
This repository contains the official implementation of the paper "CleanDIFT: Diffusion Features without Noise".
We propose CleanDIFT, a novel method to extract noise-free, timestep-independent features by enabling diffusion models to work directly with clean input images. Our approach is efficient, training on a single GPU in just 30 minutes.

-
## 🚀 Usage
+
### Setup
+
Just clone the repo and install the requirements via `pip install -r requirements.txt`, then you're ready to go.
### Training
-In order to train a feature extractor on your own, you can run `python train.py`. The training script expects your data to be stored in `./data` with the following format: Single level directory with images named `filename.jpg` and corresponding json files `filename.json` that contain the key `caption`.
+In order to train a feature extractor on your own, you can run `python train.py`. The training script expects your data to be stored in `./data` with the following format: Single level directory with images named `filename.jpg` and corresponding json files `filename.json` that contain the key `caption`.
### Feature Extraction
-For feature extraction, please refer to one of the notebooks at [`notebooks`](https://github.com/CompVis/CleanDIFT/tree/main/notebooks). We demonstrate how to extract features and use them for semantic correspondence detection and depth prediction.
+For feature extraction, please refer to one of the notebooks at [`notebooks`](https://github.com/CompVis/cleandift/tree/main/notebooks). We demonstrate how to extract features and use them for semantic correspondence detection and depth prediction.
Our checkpoints are fully compatible with the `diffusers` library. If you already have a pipeline using SD 1.5 or SD 2.1 from `diffusers`, you can simply replace the U-Net state dict:
@@ -48,7 +47,6 @@ state_dict = load_file(ckpt_pth)
unet.load_state_dict(state_dict, strict=True)
```
-
## 🎓 Citation
If you use this codebase or otherwise found our work valuable, please cite our paper:
@@ -62,4 +60,4 @@ If you use this codebase or otherwise found our work valuable, please cite our p
archivePrefix={arXiv},
primaryClass={cs.CV}
}
-```
\ No newline at end of file
+```
diff --git a/docs/index.html b/docs/index.html
index f68192e..0dcee60 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -6,18 +6,20 @@
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
+
@@ -25,10 +27,10 @@
-
+
CleanDIFT: Diffusion Features without Noise
-
+
@@ -124,7 +126,7 @@