Skip to content

PS5SD 0.4.0

Choose a tag to compare

@Darkatek7 Darkatek7 released this 21 Oct 08:34

PS5SD 0.4.0 adds high resolution and upscaling from #3.

New

  • Hires fix: Create tab → Settings → Hires fix. The image is generated, scaled up and sampled again at the larger size, so it gets more detail than a plain upscale. Pick the upscaler (the quick built-in Latent, Lanczos or Nearest, or an ESRGAN model), the scale (for example 1.5: 1024×1024 becomes 1536×1536), the steps of the second pass (0: as many as the first) and the denoising strength (0.3 to 0.6 keeps the picture and adds detail). The page shows the size it will come out at, and the progress tells the first pass from the hires pass. Presets keep the hires settings.
  • Upscale button: under a finished image and in the gallery's image viewer. It runs an ESRGAN model over the image (4 times as wide and high for most), saves the result to the gallery and opens it. Which model it uses is in Settings → Upscale button.
  • Upscalers on the Models tab: Real-ESRGAN x4plus (photos, 67 MB) and its anime model (18 MB) are one click away; the Hugging Face copies are byte for byte Real-ESRGAN's own releases. Others come by link or upload as Upscaler (.pth, .pt, .safetensors, .gguf), or by FTP into /data/PS5SD/upscalers. A Civitai upscaler goes there by itself.

Sizes above 2048 px are not measured on the console yet; the web UI warns about them. With SDXL loaded about 3.9 GiB of the console's memory is free, so a very large hires image may not fit. Measurements follow in docs/CONSOLE.md.

API

  • hires on /sdcpp/v1/img_gen (enable_hr, hr_scale, hr_upscaler, hr_steps, denoising_strength on /sdapi/v1/txt2img); preview.pass counts all first passes, then the hires passes.
  • POST /sdcpp/v1/upscale saves its result to the gallery and names it in saved; "return_image": false leaves the image out of the answer (patch 0061).
  • GET /ps5sd/v1/app/upscalers, DELETE /ps5sd/v1/app/upscalers/<file>; "kind": "upscalers" for downloads and uploads/upscalers/<file> for uploads.
  • Presets: hires_scale, hires_steps, hires_denoise, hires_upscaler in # defaults:.

Install

Install from the homebrew store, or unpack PPSA99576.zip into /data/homebrew/ on the console and let ShadowMountPlus scan. The requirements are unchanged from 0.1.0 (etaHEN + kstuff-lite, ShadowMountPlus, elfldr; ftpsrv on 2121 optional).

Details: docs/API.md, docs/MODELS.md, ROADMAP.md (next: image to image and inpainting in 0.5.0).