Spaces:
Running on Zero
Running on Zero
Commit History
-
feat: expose Lightning LoRA variant picker with step/CFG linkage Running
zhoudewei.666Replace the single "Lightning LoRA (faster)" checkbox with a dropdown (Not use / 8-steps / 4-steps) so users can pick the distillation variant. Both Lightning LoRAs are preloaded once at startup under separate adapter names, and per-request only the selected one is activated (weight 1.0 for the chosen variant, 0.0 for the others). Selecting a variant now also auto-updates the Steps and True CFG scale fields to the recommended defaults (8/1.0, 4/1.0, Not use -> 28/4.0). Running with Lightning plus the refine LoRA at CFG>1 was visibly off because the Lightning distillation bakes CFG into the weights; switching CFG to 1.0 automatically avoids that trap. Default variant is 4-steps. Made-with: Cursorda22862
-
ui: add bilingual environment update notice
zhoudewei.666Highlight the 2026/04/21 environment update in both English and Chinese so users can quickly understand the expected quality improvement and where to read details. Made-with: Cursor79582be -
chore: pin core ML dependencies in requirements
zhoudewei.666Lock diffusers, peft, and safetensors to exact versions to keep environment setup consistent and reproducible. Made-with: Cursor1b5d567 -
chore: pin transformers to 4.55.0
zhoudewei.666Lock transformers to an exact version to ensure consistent dependency resolution and runtime behavior. Made-with: Cursordae34b8
-
feat: normalize uploaded images to sRGB via embedded ICC profile
zhoudewei.666Prevents color shifts when users upload images tagged with non-sRGB profiles (e.g. Display P3) by converting through ImageCms before feeding to the model. Made-with: Cursore2630d7
-
ui: default paste-back mode to mask, reorder options to match spatial source
zhoudewei.666Made-with: Cursor77a0c15
-
ui: move key controls out of advanced settings and add seed dice
zhoudewei.666Improve usability by exposing paste-back mode and crop margin in the main panel, adding clearer refine guidance notes, and providing a one-click random seed generator. Made-with: Cursor1e0e825 -
chore: enable Lightning LoRA by default
zhoudewei.666Made-with: Cursor2fed0ac
-
fix: use gr.ImageSlider with PIL tuples, remove Region info output
zhoudewei.666Made-with: Cursor0349b3d -
docs: clarify reference image brush behavior in description
zhoudewei.666Made-with: Cursorddcfea6 -
refactor UI: remove unsupported params, compact layout with accordion, add intro
zhoudewei.666- Remove not_use_spatial_vae, spatial_bbox_margin, negative_prompt - Switch from gr.Interface to gr.Blocks for compact layout - Group advanced settings in collapsible accordion - Add bilingual (EN/CN) app description at top Made-with: Cursorf3b512b -
fix: disable SSR mode to fix ImageSlider rendering error
zhoudewei.666Made-with: Cursor33b6baa -
fix: import spaces before torch/diffusers to avoid CUDA init conflict
zhoudewei.666Made-with: Cursor7a9f748 -
fix: adapt for ZeroGPU - move model loading to module level, add missing deps
zhoudewei.666- Move pipeline init to module level so ZeroGPU handles CPU/GPU transfer - Add torchvision, sentencepiece, protobuf to requirements - Fix ImageSlider import from gradio_imageslider - Remove model_dir/device/output_path UI controls (not applicable on Spaces) - Set hardware: zero-gpu in README Made-with: Cursorf291567 -
init app
zhoudewei.66612c29f6 -
initial commit
Verified signatureb05a72d -
Duplicate from gradio-templates/text-to-image-gradio-template
Co-authored-by: Sylvain Filoni <fffiloni@users.noreply.huggingface.co>9d6d375