@ -153,9 +153,6 @@ def str_permutations(x):
""" dummy function for specifying it in AxisOption ' s type when you want to get a list of permutations """
""" dummy function for specifying it in AxisOption ' s type when you want to get a list of permutations """
return x
return x
def str_to_bool ( x ) :
return " true " in x . lower ( ) . strip ( )
AxisOption = namedtuple ( " AxisOption " , [ " label " , " type " , " apply " , " format_value " , " confirm " ] )
AxisOption = namedtuple ( " AxisOption " , [ " label " , " type " , " apply " , " format_value " , " confirm " ] )
AxisOptionImg2Img = namedtuple ( " AxisOptionImg2Img " , [ " label " , " type " , " apply " , " format_value " , " confirm " ] )
AxisOptionImg2Img = namedtuple ( " AxisOptionImg2Img " , [ " label " , " type " , " apply " , " format_value " , " confirm " ] )
@ -180,7 +177,7 @@ axis_options = [
AxisOption ( " Eta " , float , apply_field ( " eta " ) , format_value_add_label , None ) ,
AxisOption ( " Eta " , float , apply_field ( " eta " ) , format_value_add_label , None ) ,
AxisOption ( " Clip skip " , int , apply_clip_skip , format_value_add_label , None ) ,
AxisOption ( " Clip skip " , int , apply_clip_skip , format_value_add_label , None ) ,
AxisOption ( " Denoising " , float , apply_field ( " denoising_strength " ) , format_value_add_label , None ) ,
AxisOption ( " Denoising " , float , apply_field ( " denoising_strength " ) , format_value_add_label , None ) ,
AxisOption ( " Mask Conditioning Image" , str_to_bool , apply_field ( " inpainting_mask_image " ) , format_value_add_label , None ) ,
AxisOption ( " Cond. Image Mask Weight" , float , apply_field ( " inpainting_mask_weight " ) , format_value_add_label , None ) ,
]
]