csslc / ccsr

Improving the Stability of Diffusion Models for Content Consistent Super-Resolution

  • Public
  • 3.3K runs
  • L40S
  • GitHub
  • Paper
  • License

Input

image
*file

Low quality input image.

number

Super-resolution scale.

Default: 4

integer
(minimum: 1, maximum: 500)

Number of sampling steps

Default: 45

boolean

If specified, a patch-based sampling strategy for diffusion peocess will be used for sampling.

Default: false

integer

Size of patch for diffusion process.

Default: 512

integer

Stride of sliding patch for diffusion process.

Default: 256

boolean

If specified, a patch-based sampling strategy for the encoder and decoder in VAE will be used.

Default: false

integer

Size of patch for VAE decoder, latent size.

Default: 224

integer

Size of patch for VAE encoder, image size.

Default: 1024

string

Size of patch.

Default: "adain"

number

The starting point of uniform sampling strategy.

Default: 0.6667

number

The ending point of uniform sampling strategy.

Default: 0.3333

integer

Random seed. Leave blank to randomize the seed

Output

output
Generated in

Run time and cost

This model costs approximately $0.23 to run on Replicate, or 4 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 4 minutes. The predict time for this model varies significantly based on the inputs.

Readme

Improving the Stability of Diffusion Models for Content Consistent Super-Resolution

🌟 Overview Framework

ccsr

Citations

If our code helps your research or work, please consider citing our paper. The following are BibTeX references:

@article{sun2023ccsr,
  title={Improving the Stability of Diffusion Models for Content Consistent Super-Resolution},
  author={Sun, Lingchen and Wu, Rongyuan and Zhang, Zhengqiang and Yong, Hongwei and Zhang, Lei},
  journal={arXiv preprint arXiv:2401.00877},
  year={2024}
}

License

This project is released under the Apache 2.0 license.

Acknowledgement

This project is based on ControlNet, BasicSR and DiffBIR. Some codes are brought from StableSR. Thanks for their awesome works.

Contact

If you have any questions, please contact: ling-chen.sun@connect.polyu.hk