Skip to content

Commit d6a40f5

Browse files
authored
Merge pull request #53 from SpenserCai/dev
fix type
2 parents 89d0462 + 860cdce commit d6a40f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

intersvc/controlnet_predict_model.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Date: 2023-08-22 15:52:43
44
* @version:
55
* @LastEditors: SpenserCai
6-
* @LastEditTime: 2023-08-22 16:00:42
6+
* @LastEditTime: 2023-08-23 13:00:37
77
* @Description: file content
88
*/
99
package intersvc
@@ -14,14 +14,14 @@ type ControlnetPredictArgsItem struct {
1414
Model string `json:"model"`
1515
Weight float64 `json:"weight"`
1616
Image string `json:"image"`
17-
ResizeMode int `json:"resize_mode"`
17+
ResizeMode int64 `json:"resize_mode"`
1818
LowVRAM bool `json:"low_vram"`
19-
ProcessorRes int `json:"processor_res"`
20-
ThresholdA int `json:"threshold_a"`
21-
ThresholdB int `json:"threshold_b"`
19+
ProcessorRes float64 `json:"processor_res"`
20+
ThresholdA float64 `json:"threshold_a"`
21+
ThresholdB float64 `json:"threshold_b"`
2222
GuidanceStart float64 `json:"guidance_start"`
2323
GuidanceEnd float64 `json:"guidance_end"`
24-
ControlMode int `json:"control_mode"`
24+
ControlMode int64 `json:"control_mode"`
2525
PixelPerFect bool `json:"pixel_perfect"`
2626
}
2727

0 commit comments

Comments
 (0)