Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support nai-diffusion-3 model #221

Merged
merged 10 commits into from
Feb 8, 2024
Merged

feat: support nai-diffusion-3 model #221

merged 10 commits into from
Feb 8, 2024

Conversation

MirrorCY
Copy link
Member

@MirrorCY MirrorCY commented Dec 29, 2023

fix #212
fix #215
fix #218

@MirrorCY MirrorCY requested a review from MaikoTan December 29, 2023 23:07
@MirrorCY
Copy link
Member Author

MirrorCY commented Dec 29, 2023

V3 Sampler Options

Samplers

  • k-euler
  • k_euler_ancestral
  • k_dpmpp_2s_ancestral
  • k_dpmpp_2m
  • k_dpmpp_sde
  • ddim_v3

Notes

  • The "noise_schedule" is automatically set to "exponential" for k_dpmpp_2m. For other samplers, it defaults to "noise_schedule": "native".

Limitations under ddim_v3 Sampler

  • The following features are not supported:
    • "noise_schedule": "native" (This option should be removed)
    • "sm": false
    • "sm_dyn": false (These two options should be set to false)

New Options

  • "sm": bool (Needs to be enabled for the next option)
  • "sm_dyn": bool (Can be used only when "sm" is true)
  • "dynamic_thresholding": bool

@MirrorCY
Copy link
Member Author

A Valid Reques

  {
  "input": "1boy, 1girl, blurry background, {red eyes}, medium hair, crown braid, purple hair, gradient hair, blonde hair, blunt ends, hair intakes, flat chest, female service cap, hat ribbon, armor, ok sign, hood, orange eyes, bags under eyes, big hair, asymmetrical hair, brown hair, skinny, multicolored argyle sweater, flip-flops, arm grab, pendant, best quality, amazing quality, very aesthetic, absurdres",
  "model": "nai-diffusion-3",
  "action": "generate",
  "parameters":
    {
      "params_version": 1,
      "width": 1216,
      "height": 2560,
      "scale": 5,
      "sampler": "k_euler_ancestral",
      "steps": 8,
      "n_samples": 1,
      "ucPreset": 0,
      "qualityToggle": true,
      "sm": true,
      "sm_dyn": true,
      "dynamic_thresholding": true,
      "controlnet_strength": 1,
      "legacy": false,
      "add_original_image": false,
      "uncond_scale": 1,
      "cfg_rescale": 0,
      "noise_schedule": "native",
      "legacy_v3_extend": false,
      "seed": 2323460999,
      "negative_prompt": "nsfw, lowres, {bad}, error, fewer, extra, missing, worst quality, jpeg artifacts, bad quality, watermark, unfinished, displeasing, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract]",
    },
}

@MirrorCY MirrorCY changed the title feat: add nai-v3 samplers feat: support nai-diffusion-3 model Dec 29, 2023
@MirrorCY MirrorCY marked this pull request as ready for review February 3, 2024 22:16
@MirrorCY
Copy link
Member Author

MirrorCY commented Feb 4, 2024

@MaikoTan done, take a look?

@MirrorCY
Copy link
Member Author

MirrorCY commented Feb 4, 2024

fix #218

@MirrorCY
Copy link
Member Author

MirrorCY commented Feb 4, 2024

fix #215

@MirrorCY
Copy link
Member Author

MirrorCY commented Feb 4, 2024

fix #212

Copy link
Member

@MaikoTan MaikoTan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shigma shigma merged commit dcfda09 into main Feb 8, 2024
3 of 4 checks passed
@shigma shigma deleted the nai-v3 branch February 8, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants