feat(ai): add SD.Next image generation and background removal support - #8
Open
BillyOutlast wants to merge 1 commit into
Open
feat(ai): add SD.Next image generation and background removal support#8BillyOutlast wants to merge 1 commit into
BillyOutlast wants to merge 1 commit into
Conversation
- Add SD.Next image provider adapter supporting txt2img, img2img, and editImage - Add SD.Next Rembg background removal adapter for extra-single-image postprocessing - Add live model checkpoint discovery route for /sdapi/v1/sd-models - Add SD.Next protocols and custom presets in AI Settings and Custom Provider forms - Support optional authentication for local and --auth SD.Next instances - Add unit and contract tests for SD.Next generation, rembg, and session config
|
Someone is attempting to deploy a commit to the personal Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds first-class support for SD.Next via its REST API, enabling local and self-hosted Stable Diffusion workflows with Manga Studio.
Changes
1. SD.Next Image Generation Provider
src/ai/providers/sdnext.tswithImageGenerationProviderinterface.POST /sdapi/v1/txt2imgwith prompt, negative prompt, dimensions, sampling steps, CFG scale, and per-request model overrides (override_settings.sd_model_checkpoint).POST /sdapi/v1/img2imgwithinit_images(base64) for character consistency across pose/expression generations.POST /sdapi/v1/img2imgfor local edits and prompt-driven inpainting.http://127.0.0.1:7860), HTTP Basic Auth (username:password) when started with--auth, or Bearer tokens./sdapi/v1/optionsfor real-time connection status.GET /sdapi/v1/sd-modelsdynamically populates installed checkpoints in the model selector.2. SD.Next Background Removal (Rembg)
src/assets/providers/sdnext.tsusing SD.Next's built-in Rembg module onPOST /sdapi/v1/extra-single-image(rembg_model: u2net).3. UI & Configuration
SD.NextandSD.Next (rembg)options to AI Settings (AiSettingsDialog.tsx).SD.Next txt2imgandSD.Next rembgquick presets inCustomProviderForm.tsx.providerSession.tsto allow empty keys for unauthenticated local instances.4. Tests & Documentation
src/ai/providers/sdnext.test.ts,src/assets/providers/sdnext.test.ts, andsrc/server/providerSession.test.ts./sdapi/v1/*routes toscripts/fake-providers.mjs.AI_PROVIDER_ARCHITECTURE.md,DEPLOYMENT.md,README.md, and.env.example.Verification
npm run typecheck: 0 errors.npm test: 95 test suites passed, 1,089 tests passed (0 failures).