Class ControlNet
java.lang.Object
cloud.liblibai.openapi.client.model.ControlNet
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-05T15:10:08.947334966+08:00[Asia/Shanghai]",
comments="Generator version: 7.10.0")
public class ControlNet
extends Object
ControlNet
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotationParameters(Map<String, Object> annotationParameters) controlMode(Integer controlMode) controlWeight(Float controlWeight) endingControlStep(Integer endingControlStep) booleanstatic ControlNetCreate an instance of ControlNet given an JSON stringGet annotationParameters控制模式,0均衡,1更注重提示词,2更注重controlnet控制权重结束控制步数参考图高度蒙版图getModel()controlnet的模型完美像素预处理器枚举值缩放模式,0拉伸,1裁剪,2填充参考图地址开始控制步数执行顺序getWidth()参考图宽度inthashCode()pixelPerfect(Integer pixelPerfect) preprocessor(Integer preprocessor) putAnnotationParametersItem(String key, Object annotationParametersItem) resizeMode(Integer resizeMode) voidsetAnnotationParameters(Map<String, Object> annotationParameters) voidsetControlMode(Integer controlMode) voidsetControlWeight(Float controlWeight) voidsetEndingControlStep(Integer endingControlStep) voidvoidsetMaskImage(String maskImage) voidvoidsetPixelPerfect(Integer pixelPerfect) voidsetPreprocessor(Integer preprocessor) voidsetResizeMode(Integer resizeMode) voidsetSourceImage(String sourceImage) voidsetStartingControlStep(Integer startingControlStep) voidsetUnitOrder(Integer unitOrder) voidsourceImage(String sourceImage) startingControlStep(Integer startingControlStep) toJson()Convert an instance of ControlNet to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_UNIT_ORDER
- See Also:
-
SERIALIZED_NAME_SOURCE_IMAGE
- See Also:
-
SERIALIZED_NAME_WIDTH
- See Also:
-
SERIALIZED_NAME_HEIGHT
- See Also:
-
SERIALIZED_NAME_PREPROCESSOR
- See Also:
-
SERIALIZED_NAME_ANNOTATION_PARAMETERS
- See Also:
-
SERIALIZED_NAME_MODEL
- See Also:
-
SERIALIZED_NAME_CONTROL_WEIGHT
- See Also:
-
SERIALIZED_NAME_STARTING_CONTROL_STEP
- See Also:
-
SERIALIZED_NAME_ENDING_CONTROL_STEP
- See Also:
-
SERIALIZED_NAME_PIXEL_PERFECT
- See Also:
-
SERIALIZED_NAME_CONTROL_MODE
- See Also:
-
SERIALIZED_NAME_RESIZE_MODE
- See Also:
-
SERIALIZED_NAME_MASK_IMAGE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ControlNet
public ControlNet()
-
-
Method Details
-
unitOrder
-
getUnitOrder
-
setUnitOrder
-
sourceImage
-
getSourceImage
-
setSourceImage
-
width
-
getWidth
-
setWidth
-
height
-
getHeight
-
setHeight
-
preprocessor
-
getPreprocessor
-
setPreprocessor
-
annotationParameters
-
putAnnotationParametersItem
-
getAnnotationParameters
-
setAnnotationParameters
-
model
-
getModel
-
setModel
-
controlWeight
-
getControlWeight
-
setControlWeight
-
startingControlStep
-
getStartingControlStep
-
setStartingControlStep
-
endingControlStep
-
getEndingControlStep
-
setEndingControlStep
-
pixelPerfect
-
getPixelPerfect
-
setPixelPerfect
-
controlMode
-
getControlMode
-
setControlMode
-
resizeMode
-
getResizeMode
-
setResizeMode
-
maskImage
-
getMaskImage
-
setMaskImage
-
equals
-
hashCode
-
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ControlNet
-
fromJson
Create an instance of ControlNet given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ControlNet
- Throws:
IOException- if the JSON string is invalid with respect to ControlNet
-
toJson
-