Class: AILabTools::Generated::Params::ImageRemoveObjectsAdvancedParams
- Inherits:
-
Params
- Object
- Params
- AILabTools::Generated::Params::ImageRemoveObjectsAdvancedParams
- Defined in:
- lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb
Instance Attribute Summary collapse
-
#dilate_size ⇒ Object
readonly
Returns the value of attribute dilate_size.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#mask ⇒ Object
readonly
Returns the value of attribute mask.
-
#quality ⇒ Object
readonly
Returns the value of attribute quality.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
-
#seed ⇒ Object
readonly
Returns the value of attribute seed.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
-
#strength ⇒ Object
readonly
Returns the value of attribute strength.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image:, mask:, steps: nil, strength: nil, scale: nil, seed: nil, dilate_size: nil, quality: nil) ⇒ ImageRemoveObjectsAdvancedParams
constructor
A new instance of ImageRemoveObjectsAdvancedParams.
- #query_fields ⇒ Object
Constructor Details
#initialize(image:, mask:, steps: nil, strength: nil, scale: nil, seed: nil, dilate_size: nil, quality: nil) ⇒ ImageRemoveObjectsAdvancedParams
Returns a new instance of ImageRemoveObjectsAdvancedParams.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 8 def initialize(image:, mask:, steps: nil, strength: nil, scale: nil, seed: nil, dilate_size: nil, quality: nil) @image = image @mask = mask @steps = steps @strength = strength @scale = scale @seed = seed @dilate_size = dilate_size @quality = quality end |
Instance Attribute Details
#dilate_size ⇒ Object (readonly)
Returns the value of attribute dilate_size.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 7 def dilate_size @dilate_size end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 7 def image @image end |
#mask ⇒ Object (readonly)
Returns the value of attribute mask.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 7 def mask @mask end |
#quality ⇒ Object (readonly)
Returns the value of attribute quality.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 7 def quality @quality end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 7 def scale @scale end |
#seed ⇒ Object (readonly)
Returns the value of attribute seed.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 7 def seed @seed end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 7 def steps @steps end |
#strength ⇒ Object (readonly)
Returns the value of attribute strength.
7 8 9 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 7 def strength @strength end |
Instance Method Details
#body_fields ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 23 def body_fields compact_hash({ "image" => @image, "mask" => @mask, "steps" => @steps, "strength" => @strength, "scale" => @scale, "seed" => @seed, "dilate_size" => @dilate_size, "quality" => @quality, }) end |
#query_fields ⇒ Object
19 20 21 |
# File 'lib/ailabtools/generated/params/image_remove_objects_advanced_params.rb', line 19 def query_fields {} end |