提示词引导系数 (CFG Scale)
This commit is contained in:
@@ -108,9 +108,9 @@ func (model *Model) Inference(image_list []Image, callback func(Image)) {
|
||||
//SeedResizeFromW int `json:"seed_resize_from_w"`
|
||||
//SamplerName string `json:"sampler_name"`
|
||||
//BatchSize int `json:"batch_size"`
|
||||
NIter int `json:"n_iter"`
|
||||
Steps int `json:"steps"`
|
||||
//CfgScale int `json:"cfg_scale"`
|
||||
NIter int `json:"n_iter"`
|
||||
Steps int `json:"steps"`
|
||||
CfgScale int `json:"cfg_scale"`
|
||||
//Width int `json:"width"`
|
||||
//Height int `json:"height"`
|
||||
//RestoreFaces bool `json:"restore_faces"`
|
||||
@@ -154,9 +154,9 @@ func (model *Model) Inference(image_list []Image, callback func(Image)) {
|
||||
//SeedResizeFromW: -1,
|
||||
//SamplerName: "beamsearch",
|
||||
//BatchSize: 1,
|
||||
NIter: len(image_list),
|
||||
Steps: 50,
|
||||
//CfgScale: 7,
|
||||
NIter: len(image_list), // 1~100
|
||||
Steps: 50, // 1~150
|
||||
CfgScale: image_list[0].CfgScale,
|
||||
//Width: 512,
|
||||
//Height: 512,
|
||||
//RestoreFaces: false,
|
||||
|
Reference in New Issue
Block a user