-
Notifications
You must be signed in to change notification settings - Fork 208
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: compatible with nai-v3 #241
Conversation
这个 PR 解决了以下问题:
|
FYI request payload with default settings {
"input": "<user-input>, best quality, amazing quality, very aesthetic, absurdres",
"model": "nai-diffusion-3",
"action": "generate",
"parameters": {
"params_version": 1,
"width": 832,
"height": 1216,
"scale": 5,
"sampler": "k_euler_ancestral",
"steps": 28,
"n_samples": 1,
"ucPreset": 0,
"qualityToggle": true,
"sm": false,
"sm_dyn": false,
"dynamic_thresholding": false,
"controlnet_strength": 1,
"legacy": false,
"add_original_image": true,
"uncond_scale": 1,
"cfg_rescale": 0,
"noise_schedule": "native",
"legacy_v3_extend": false,
"reference_information_extracted": 1,
"reference_strength": 0.6,
"seed": 1234567890,
"negative_prompt": "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]"
}
} response headers
|
另外发现现在生图的接口为 https://image.novelai.net/ai/generate-image |
@@ -146,7 +146,7 @@ export interface PromptConfig { | |||
} | |||
|
|||
export const PromptConfig: Schema<PromptConfig> = Schema.object({ | |||
basePrompt: Schema.computed(Schema.string().role('textarea'), options).description('默认附加的标签。').default('masterpiece, best quality'), | |||
basePrompt: Schema.computed(Schema.string().role('textarea'), options).description('默认附加的标签。').default('best quality, amazing quality, very aesthetic, absurdres'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change affects every backend not only nai-v3
, would it make nai-v1
or other backends generate worse images? If no, it is okay for me.
这个改动影响了所有的后端不仅仅是 nai-v3
,它会让 nai-v1
或其他后端生成更糟的图片吗?如否,它对我来说是可以的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有测试过,我过会儿测试一下
或者也可以把预设 model 改为 nai-v3,因为 v1 已经被官方标记为不推荐了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
或者也可以把预设 model 改为 nai-v3,因为 v1 已经被官方标记为不推荐了
This is okay to me, can you change the default model to nai-v3 as well?
这听起来可以,你能顺便改默认模型到 nai-v3 吗?
After this, I will merge the PR.
之后,我会合并 PR。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果修改默认 model 为 nai-v3,我们是否应该将 scale 的预设值同步修改为 5?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果修改默认 model 为 nai-v3,我们是否应该将 scale 的预设值同步修改为 5?
Sure, will you double-check and change all relative parameters to match the nai v3 afterwards?
当然,您会仔细检查并更改所有相关参数以匹配 nai v3 吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will you double-check and change all relative parameters to match the nai v3 afterwards?
当然,您会仔细检查并更改所有相关参数以匹配 nai v3 吗?
done
Looks good to me, thanks for your help! |
@MaikoTan 你合吧,我没有权限 |
No description provided.