Skip to content

Commit 3ca4554

Browse files
authored
Merge pull request #217 from rupeshs/add-aura-sr-support
Add aura SR support
2 parents 30ea900 + ad224f0 commit 3ca4554

10 files changed

+861
-5
lines changed

Readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ If we enable Tiny decoder(TAESD) we can save some memory(2GB approx) for example
117117
- 1 step fast inference support for SDXL and SD1.5
118118
- Experimental support for single file Safetensors SD 1.5 models(Civitai models), simply add local model path to configs/stable-diffusion-models.txt file.
119119
- Add REST API support
120+
- Add Aura SR (4x)/GigaGAN based upscaler support
120121

121122
<a id="fast-inference-benchmarks"></a>
122123

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ onnxruntime==1.17.3
1010
pydantic==2.4.2
1111
typing-extensions==4.8.0
1212
pyyaml==6.0.1
13-
gradio==4.21.0
13+
gradio==4.23.0
1414
peft==0.6.1
1515
opencv-python==4.8.1.78
1616
omegaconf==2.3.0

src/backend/lcm_text_to_image.py

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ def _add_freeu(self):
8383
b2=1.2,
8484
)
8585

86+
def _enable_vae_tiling(self):
87+
self.pipeline.vae.enable_tiling()
88+
8689
def _update_lcm_scheduler_params(self):
8790
if isinstance(self.pipeline.scheduler, LCMScheduler):
8891
self.pipeline.scheduler = LCMScheduler.from_config(

src/backend/models/upscale.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ class UpscaleMode(str, Enum):
66

77
normal = "normal"
88
sd_upscale = "sd_upscale"
9+
aura_sr = "aura_sr"

0 commit comments

Comments
 (0)