Skip to content

Commit

Permalink
Merge pull request #217 from rupeshs/add-aura-sr-support
Browse files Browse the repository at this point in the history
Add aura SR support
  • Loading branch information
rupeshs authored Jun 29, 2024
2 parents 30ea900 + ad224f0 commit 3ca4554
Show file tree
Hide file tree
Showing 10 changed files with 861 additions and 5 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ If we enable Tiny decoder(TAESD) we can save some memory(2GB approx) for example
- 1 step fast inference support for SDXL and SD1.5
- Experimental support for single file Safetensors SD 1.5 models(Civitai models), simply add local model path to configs/stable-diffusion-models.txt file.
- Add REST API support
- Add Aura SR (4x)/GigaGAN based upscaler support

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

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ onnxruntime==1.17.3
pydantic==2.4.2
typing-extensions==4.8.0
pyyaml==6.0.1
gradio==4.21.0
gradio==4.23.0
peft==0.6.1
opencv-python==4.8.1.78
omegaconf==2.3.0
Expand Down
3 changes: 3 additions & 0 deletions src/backend/lcm_text_to_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def _add_freeu(self):
b2=1.2,
)

def _enable_vae_tiling(self):
self.pipeline.vae.enable_tiling()

def _update_lcm_scheduler_params(self):
if isinstance(self.pipeline.scheduler, LCMScheduler):
self.pipeline.scheduler = LCMScheduler.from_config(
Expand Down
1 change: 1 addition & 0 deletions src/backend/models/upscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ class UpscaleMode(str, Enum):

normal = "normal"
sd_upscale = "sd_upscale"
aura_sr = "aura_sr"
Loading

0 comments on commit 3ca4554

Please sign in to comment.