Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LYCEXE/StructSR
StructSR: Refuse Spurious Details in Real-World Image Super-Resolution
https://github.com/LYCEXE/StructSR
Last synced: 15 days ago
JSON representation
StructSR: Refuse Spurious Details in Real-World Image Super-Resolution
- Host: GitHub
- URL: https://github.com/LYCEXE/StructSR
- Owner: LYCEXE
- License: mit
- Created: 2024-12-12T11:26:48.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-01-16T08:39:06.000Z (29 days ago)
- Last Synced: 2025-01-16T09:56:01.626Z (29 days ago)
- Language: Python
- Size: 910 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-diffusion-categorized - [Code
README
## (AAAI2025) StructSR: Refuse Spurious Details in Real-World Image Super-Resolution
[Paper](https://arxiv.org/abs/2501.05777) | [Project Page](https://lycexe.github.io/StructSR-project/)
### Dependencies and Installation
- Pytorch == 1.12.1
- CUDA == 11.7
- pytorch-lightning==1.4.2
- xformers == 0.0.16 (Optional)
- Other required packages in `environment.yaml`
```
# Create a conda environment and activate it
conda env create --file environment.yaml
conda activate structsr# Install xformers
conda install xformers -c xformers/label/dev# Install taming & clip
pip install -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
pip install -e git+https://github.com/openai/CLIP.git@main#egg=clip
pip install -e .
```#### Test
Download the baseline models from [[Google Driver](https://drive.google.com/drive/folders/1EC9b1RIlZCRi4WjxlzUmHQ_3ZxI-N4x0?usp=sharing)].
```
python scripts/StructSR.py --config configs/stableSRNew/v2-finetune_text_T_512.yaml --ckpt CKPT_PATH --vqgan_ckpt VQGANCKPT_PATH --init-img INPUT_PATH --outdir OUT_DIR --ddpm_steps 200 --dec_w 0.5 --colorfix_type adain --lamda 0.3
`````` --lamda
lamda: Used for control the timesteps of $T_{SAS}$
```## Citation
Please cite us if our work is useful for your research.
```
@article{li2025structsr,
title={StructSR: Refuse Spurious Details in Real-World Image Super-Resolution},
author={Li, Yachao and Liang, Dong and Ding, Tianyu and Huang, Sheng-Jun},
journal={arXiv preprint arXiv:2501.05777},
year={2025}
}
```### License
------
This project is licensed under [MIT License](https://github.com/LYCEXE/StructSR/blob/main/LICENSE). Redistribution and use should follow this license.
### Acknowledgement
------
This project is based on [stablediffusion](https://github.com/Stability-AI/stablediffusion), [latent-diffusion](https://github.com/CompVis/latent-diffusion), [SPADE](https://github.com/NVlabs/SPADE), [mixture-of-diffusers](https://github.com/albarji/mixture-of-diffusers), [BasicSR](https://github.com/XPixelGroup/BasicSR) and [StructSR](https://github.com/IceClear/StableSR). Thanks for their awesome work.
### Contact
------
If you have any questions, please feel free to reach me out at `[email protected]`.