diff --git a/extensions-builtin/forge_legacy_preprocessors/legacy_preprocessors/preprocessor_compiled.py b/extensions-builtin/forge_legacy_preprocessors/legacy_preprocessors/preprocessor_compiled.py index add386be..72af38d6 100644 --- a/extensions-builtin/forge_legacy_preprocessors/legacy_preprocessors/preprocessor_compiled.py +++ b/extensions-builtin/forge_legacy_preprocessors/legacy_preprocessors/preprocessor_compiled.py @@ -3,7 +3,7 @@ from legacy_preprocessors.preprocessor import * legacy_preprocessors = { # "none": { - # "name": "none", + # "label": "none", # "call_function": lambda x, *args, **kwargs: (x, True), # "unload_function": None, # "managed_model": None, @@ -17,7 +17,7 @@ legacy_preprocessors = { # "tags": [] # }, "invert (from white bg & black line)": { - "name": "invert (from white bg & black line)", + "label": "invert (from white bg & black line)", "call_function": invert, "unload_function": None, "managed_model": None, @@ -33,16 +33,16 @@ legacy_preprocessors = { ] }, "animal_openpose": { - "name": "animal_openpose", + "label": "animal_openpose", "call_function": functools.partial(g_openpose_model.run_model, include_body=True, include_hand=False, include_face=False, use_animal_pose=True), "unload_function": g_openpose_model.unload, "managed_model": "g_openpose_model", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -54,22 +54,22 @@ legacy_preprocessors = { ] }, "blur_gaussian": { - "name": "blur_gaussian", + "label": "blur_gaussian", "call_function": blur_gaussian, "unload_function": None, "managed_model": None, "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", + "label": "Preprocessor Resolution", "value": 512, - "min": 64, - "max": 2048 + "minimum": 64, + "maximum": 2048 }, "slider_1": { - "name": "Sigma", - "min": 0.01, - "max": 64.0, + "label": "Sigma", + "minimum": 0.01, + "maximum": 64.0, "value": 9.0 }, "slider_2": None, @@ -80,29 +80,29 @@ legacy_preprocessors = { ] }, # "canny": { - # "name": "canny", + # "label": "canny", # "call_function": canny, # "unload_function": None, # "managed_model": "model_canny", # "model_free": False, # "no_control_mode": False, # "resolution": { - # "name": "Preprocessor Resolution", + # "label": "Preprocessor Resolution", # "value": 512, - # "min": 64, - # "max": 2048 + # "minimum": 64, + # "maximum": 2048 # }, # "slider_1": { - # "name": "Canny Low Threshold", + # "label": "Canny Low Threshold", # "value": 100, - # "min": 1, - # "max": 255 + # "minimum": 1, + # "maximum": 255 # }, # "slider_2": { - # "name": "Canny High Threshold", + # "label": "Canny High Threshold", # "value": 200, - # "min": 1, - # "max": 255 + # "minimum": 1, + # "maximum": 255 # }, # "slider_3": None, # "priority": 100, @@ -111,16 +111,16 @@ legacy_preprocessors = { # ] # }, "densepose (pruple bg & purple torso)": { - "name": "densepose (pruple bg & purple torso)", + "label": "densepose (pruple bg & purple torso)", "call_function": functools.partial(densepose, cmap="viridis"), "unload_function": unload_densepose, "managed_model": None, "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -132,16 +132,16 @@ legacy_preprocessors = { ] }, "densepose_parula (black bg & blue torso)": { - "name": "densepose_parula (black bg & blue torso)", + "label": "densepose_parula (black bg & blue torso)", "call_function": functools.partial(densepose, cmap="parula"), "unload_function": unload_densepose, "managed_model": None, "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -153,7 +153,7 @@ legacy_preprocessors = { ] }, "depth_anything": { - "name": "depth_anything", + "label": "depth_anything", "call_function": functools.partial(depth_anything, colored=False), "unload_function": unload_depth_anything, "managed_model": "model_depth_anything", @@ -169,17 +169,17 @@ legacy_preprocessors = { ] }, "depth_hand_refiner": { - "name": "depth_hand_refiner", + "label": "depth_hand_refiner", "call_function": g_hand_refiner_model.run_model, "unload_function": g_hand_refiner_model.unload, "managed_model": "g_hand_refiner_model", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", + "label": "Preprocessor Resolution", "value": 512, - "min": 64, - "max": 2048 + "minimum": 64, + "maximum": 2048 }, "slider_1": None, "slider_2": None, @@ -190,29 +190,29 @@ legacy_preprocessors = { ] }, "depth_leres": { - "name": "depth_leres", + "label": "depth_leres", "call_function": functools.partial(leres, boost=False), "unload_function": unload_leres, "managed_model": "model_leres", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": { - "name": "Remove Near %", - "min": 0, - "max": 100, + "label": "Remove Near %", + "minimum": 0, + "maximum": 100, "value": 0, "step": 0.1 }, "slider_2": { - "name": "Remove Background %", - "min": 0, - "max": 100, + "label": "Remove Background %", + "minimum": 0, + "maximum": 100, "value": 0, "step": 0.1 }, @@ -223,29 +223,29 @@ legacy_preprocessors = { ] }, "depth_leres++": { - "name": "depth_leres++", + "label": "depth_leres++", "call_function": functools.partial(leres, boost=True), "unload_function": None, "managed_model": "model_leres", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": { - "name": "Remove Near %", - "min": 0, - "max": 100, + "label": "Remove Near %", + "minimum": 0, + "maximum": 100, "value": 0, "step": 0.1 }, "slider_2": { - "name": "Remove Background %", - "min": 0, - "max": 100, + "label": "Remove Background %", + "minimum": 0, + "maximum": 100, "value": 0, "step": 0.1 }, @@ -256,16 +256,16 @@ legacy_preprocessors = { ] }, "depth_midas": { - "name": "depth_midas", + "label": "depth_midas", "call_function": midas, "unload_function": unload_midas, "managed_model": "model_midas", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -277,7 +277,7 @@ legacy_preprocessors = { ] }, "depth_zoe": { - "name": "depth_zoe", + "label": "depth_zoe", "call_function": zoe_depth, "unload_function": unload_zoe_depth, "managed_model": "model_zoe_depth", @@ -293,16 +293,16 @@ legacy_preprocessors = { ] }, "dw_openpose_full": { - "name": "dw_openpose_full", + "label": "dw_openpose_full", "call_function": functools.partial(g_openpose_model.run_model, include_body=True, include_hand=True, include_face=True, use_dw_pose=True), "unload_function": g_openpose_model.unload, "managed_model": 'g_openpose_model', "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -314,7 +314,7 @@ legacy_preprocessors = { ] }, "inpaint_global_harmonious": { - "name": "inpaint_global_harmonious", + "label": "inpaint_global_harmonious", "call_function": identity, "unload_function": None, "managed_model": None, @@ -330,7 +330,7 @@ legacy_preprocessors = { ] }, "inpaint_only": { - "name": "inpaint_only", + "label": "inpaint_only", "call_function": identity, "unload_function": None, "managed_model": None, @@ -346,7 +346,7 @@ legacy_preprocessors = { ] }, "inpaint_only+lama": { - "name": "inpaint_only+lama", + "label": "inpaint_only+lama", "call_function": lama_inpaint, "unload_function": unload_lama_inpaint, "managed_model": "model_lama", @@ -362,7 +362,7 @@ legacy_preprocessors = { ] }, "instant_id_face_embedding": { - "name": "instant_id_face_embedding", + "label": "instant_id_face_embedding", "call_function": functools.partial(g_insight_face_instant_id_model.run_model_instant_id, return_keypoints=False), "unload_function": None, "managed_model": "g_insight_face_instant_id_model", @@ -378,7 +378,7 @@ legacy_preprocessors = { ] }, "instant_id_face_keypoints": { - "name": "instant_id_face_keypoints", + "label": "instant_id_face_keypoints", "call_function": functools.partial(g_insight_face_instant_id_model.run_model_instant_id, return_keypoints=True), "unload_function": None, "managed_model": None, @@ -394,7 +394,7 @@ legacy_preprocessors = { ] }, "ip-adapter_clip_sd15": { - "name": "ip-adapter_clip_sd15", + "label": "ip-adapter_clip_sd15", "call_function": functools.partial(clip, config='clip_h'), "unload_function": functools.partial(unload_clip, config='clip_h'), "managed_model": None, @@ -410,7 +410,7 @@ legacy_preprocessors = { ] }, "ip-adapter_clip_sdxl": { - "name": "ip-adapter_clip_sdxl", + "label": "ip-adapter_clip_sdxl", "call_function": functools.partial(clip, config='clip_g'), "unload_function": functools.partial(unload_clip, config='clip_g'), "managed_model": None, @@ -426,7 +426,7 @@ legacy_preprocessors = { ] }, "ip-adapter_clip_sdxl_plus_vith": { - "name": "ip-adapter_clip_sdxl_plus_vith", + "label": "ip-adapter_clip_sdxl_plus_vith", "call_function": functools.partial(clip, config='clip_h'), "unload_function": functools.partial(unload_clip, config='clip_h'), "managed_model": None, @@ -442,7 +442,7 @@ legacy_preprocessors = { ] }, "ip-adapter_face_id": { - "name": "ip-adapter_face_id", + "label": "ip-adapter_face_id", "call_function": g_insight_face_model.run_model, "unload_function": None, "managed_model": "g_insight_face_model", @@ -458,7 +458,7 @@ legacy_preprocessors = { ] }, "ip-adapter_face_id_plus": { - "name": "ip-adapter_face_id_plus", + "label": "ip-adapter_face_id_plus", "call_function": face_id_plus, "unload_function": functools.partial(unload_clip, config='clip_h'), "managed_model": None, @@ -474,7 +474,7 @@ legacy_preprocessors = { ] }, "lineart_anime": { - "name": "lineart_anime", + "label": "lineart_anime", "call_function": lineart_anime, "unload_function": unload_lineart_anime, "managed_model": "model_lineart_anime", @@ -490,7 +490,7 @@ legacy_preprocessors = { ] }, "lineart_anime_denoise": { - "name": "lineart_anime_denoise", + "label": "lineart_anime_denoise", "call_function": lineart_anime_denoise, "unload_function": unload_lineart_anime_denoise, "managed_model": "model_manga_line", @@ -506,7 +506,7 @@ legacy_preprocessors = { ] }, "lineart_coarse": { - "name": "lineart_coarse", + "label": "lineart_coarse", "call_function": lineart_coarse, "unload_function": unload_lineart_coarse, "managed_model": "model_lineart_coarse", @@ -522,7 +522,7 @@ legacy_preprocessors = { ] }, "lineart_realistic": { - "name": "lineart_realistic", + "label": "lineart_realistic", "call_function": lineart, "unload_function": unload_lineart, "managed_model": "model_lineart", @@ -538,7 +538,7 @@ legacy_preprocessors = { ] }, "lineart_standard (from white bg & black line)": { - "name": "lineart_standard (from white bg & black line)", + "label": "lineart_standard (from white bg & black line)", "call_function": lineart_standard, "unload_function": None, "managed_model": None, @@ -554,30 +554,30 @@ legacy_preprocessors = { ] }, "mediapipe_face": { - "name": "mediapipe_face", + "label": "mediapipe_face", "call_function": mediapipe_face, "unload_function": None, "managed_model": "model_mediapipe_face", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", + "label": "Preprocessor Resolution", "value": 512, - "min": 64, - "max": 2048 + "minimum": 64, + "maximum": 2048 }, "slider_1": { - "name": "Max Faces", + "label": "Max Faces", "value": 1, - "min": 1, - "max": 10, + "minimum": 1, + "maximum": 10, "step": 1 }, "slider_2": { - "name": "Min Face Confidence", + "label": "Min Face Confidence", "value": 0.5, - "min": 0.01, - "max": 1.0, + "minimum": 0.01, + "maximum": 1.0, "step": 0.01 }, "slider_3": None, @@ -585,29 +585,29 @@ legacy_preprocessors = { "tags": [] }, "mlsd": { - "name": "mlsd", + "label": "mlsd", "call_function": mlsd, "unload_function": unload_mlsd, "managed_model": "model_mlsd", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": { - "name": "MLSD Value Threshold", - "min": 0.01, - "max": 2.0, + "label": "MLSD Value Threshold", + "minimum": 0.01, + "maximum": 2.0, "value": 0.1, "step": 0.01 }, "slider_2": { - "name": "MLSD Distance Threshold", - "min": 0.01, - "max": 20.0, + "label": "MLSD Distance Threshold", + "minimum": 0.01, + "maximum": 20.0, "value": 0.1, "step": 0.01 }, @@ -618,7 +618,7 @@ legacy_preprocessors = { ] }, # "normal_bae": { - # "name": "normal_bae", + # "label": "normal_bae", # "call_function": normal_bae, # "unload_function": unload_normal_bae, # "managed_model": "model_normal_bae", @@ -634,22 +634,22 @@ legacy_preprocessors = { # ] # }, "normal_midas": { - "name": "normal_midas", + "label": "normal_midas", "call_function": midas_normal, "unload_function": unload_midas, "managed_model": None, "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": { - "name": "Normal Background Threshold", - "min": 0.0, - "max": 1.0, + "label": "Normal Background Threshold", + "minimum": 0.0, + "maximum": 1.0, "value": 0.4, "step": 0.01 }, @@ -661,16 +661,16 @@ legacy_preprocessors = { ] }, "openpose": { - "name": "openpose", + "label": "openpose", "call_function": functools.partial(g_openpose_model.run_model, include_body=True, include_hand=False, include_face=False), "unload_function": g_openpose_model.unload, "managed_model": "g_openpose_model", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -682,7 +682,7 @@ legacy_preprocessors = { ] }, "openpose_face": { - "name": "openpose_face", + "label": "openpose_face", "call_function": functools.partial(g_openpose_model.run_model, include_body=True, include_hand=False, include_face=True), "unload_function": g_openpose_model.unload, "managed_model": "g_openpose_model", @@ -698,7 +698,7 @@ legacy_preprocessors = { ] }, "openpose_faceonly": { - "name": "openpose_faceonly", + "label": "openpose_faceonly", "call_function": functools.partial(g_openpose_model.run_model, include_body=False, include_hand=False, include_face=True), "unload_function": None, "managed_model": "g_openpose_model", @@ -714,16 +714,16 @@ legacy_preprocessors = { ] }, "openpose_full": { - "name": "openpose_full", + "label": "openpose_full", "call_function": functools.partial(g_openpose_model.run_model, include_body=True, include_hand=True, include_face=True), "unload_function": g_openpose_model.unload, "managed_model": "g_openpose_model", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -735,7 +735,7 @@ legacy_preprocessors = { ] }, "openpose_hand": { - "name": "openpose_hand", + "label": "openpose_hand", "call_function": functools.partial(g_openpose_model.run_model, include_body=True, include_hand=True, include_face=False), "unload_function": g_openpose_model.unload, "managed_model": "g_openpose_model", @@ -751,7 +751,7 @@ legacy_preprocessors = { ] }, "recolor_intensity": { - "name": "recolor_intensity", + "label": "recolor_intensity", "call_function": recolor_intensity, "unload_function": None, "managed_model": None, @@ -759,10 +759,10 @@ legacy_preprocessors = { "no_control_mode": False, "resolution": None, "slider_1": { - "name": "Gamma Correction", + "label": "Gamma Correction", "value": 1.0, - "min": 0.1, - "max": 2.0, + "minimum": 0.1, + "maximum": 2.0, "step": 0.001 }, "slider_2": None, @@ -773,7 +773,7 @@ legacy_preprocessors = { ] }, "recolor_luminance": { - "name": "recolor_luminance", + "label": "recolor_luminance", "call_function": recolor_luminance, "unload_function": None, "managed_model": None, @@ -781,10 +781,10 @@ legacy_preprocessors = { "no_control_mode": False, "resolution": None, "slider_1": { - "name": "Gamma Correction", + "label": "Gamma Correction", "value": 1.0, - "min": 0.1, - "max": 2.0, + "minimum": 0.1, + "maximum": 2.0, "step": 0.001 }, "slider_2": None, @@ -795,7 +795,7 @@ legacy_preprocessors = { ] }, "reference_adain": { - "name": "reference_adain", + "label": "reference_adain", "call_function": identity, "unload_function": None, "managed_model": None, @@ -803,10 +803,10 @@ legacy_preprocessors = { "no_control_mode": False, "resolution": None, "slider_1": { - "name": "Style Fidelity (only for Balanced mode)", + "label": "Style Fidelity (only for Balanced mode)", "value": 0.5, - "min": 0.0, - "max": 1.0, + "minimum": 0.0, + "maximum": 1.0, "step": 0.01 }, "slider_2": None, @@ -817,7 +817,7 @@ legacy_preprocessors = { ] }, "reference_adain+attn": { - "name": "reference_adain+attn", + "label": "reference_adain+attn", "call_function": identity, "unload_function": None, "managed_model": None, @@ -825,10 +825,10 @@ legacy_preprocessors = { "no_control_mode": False, "resolution": None, "slider_1": { - "name": "Style Fidelity (only for Balanced mode)", + "label": "Style Fidelity (only for Balanced mode)", "value": 0.5, - "min": 0.0, - "max": 1.0, + "minimum": 0.0, + "maximum": 1.0, "step": 0.01 }, "slider_2": None, @@ -839,7 +839,7 @@ legacy_preprocessors = { ] }, "reference_only": { - "name": "reference_only", + "label": "reference_only", "call_function": identity, "unload_function": None, "managed_model": None, @@ -847,10 +847,10 @@ legacy_preprocessors = { "no_control_mode": False, "resolution": None, "slider_1": { - "name": "Style Fidelity (only for Balanced mode)", + "label": "Style Fidelity (only for Balanced mode)", "value": 0.5, - "min": 0.0, - "max": 1.0, + "minimum": 0.0, + "maximum": 1.0, "step": 0.01 }, "slider_2": None, @@ -861,7 +861,7 @@ legacy_preprocessors = { ] }, "revision_clipvision": { - "name": "revision_clipvision", + "label": "revision_clipvision", "call_function": functools.partial(clip, config='clip_g'), "unload_function": functools.partial(unload_clip, config='clip_g'), "managed_model": None, @@ -869,10 +869,10 @@ legacy_preprocessors = { "no_control_mode": True, "resolution": None, "slider_1": { - "name": "Noise Augmentation", + "label": "Noise Augmentation", "value": 0.0, - "min": 0.0, - "max": 1.0 + "minimum": 0.0, + "maximum": 1.0 }, "slider_2": None, "slider_3": None, @@ -882,7 +882,7 @@ legacy_preprocessors = { ] }, "revision_ignore_prompt": { - "name": "revision_ignore_prompt", + "label": "revision_ignore_prompt", "call_function": functools.partial(clip, config='clip_g'), "unload_function": functools.partial(unload_clip, config='clip_g'), "managed_model": None, @@ -890,10 +890,10 @@ legacy_preprocessors = { "no_control_mode": True, "resolution": None, "slider_1": { - "name": "Noise Augmentation", + "label": "Noise Augmentation", "value": 0.0, - "min": 0.0, - "max": 1.0 + "minimum": 0.0, + "maximum": 1.0 }, "slider_2": None, "slider_3": None, @@ -903,16 +903,16 @@ legacy_preprocessors = { ] }, "scribble_hed": { - "name": "scribble_hed", + "label": "scribble_hed", "call_function": scribble_hed, "unload_function": None, "managed_model": "model_hed", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -924,7 +924,7 @@ legacy_preprocessors = { ] }, "scribble_pidinet": { - "name": "scribble_pidinet", + "label": "scribble_pidinet", "call_function": scribble_pidinet, "unload_function": None, "managed_model": "model_pidinet", @@ -940,22 +940,22 @@ legacy_preprocessors = { ] }, "scribble_xdog": { - "name": "scribble_xdog", + "label": "scribble_xdog", "call_function": scribble_xdog, "unload_function": None, "managed_model": None, "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", + "label": "Preprocessor Resolution", "value": 512, - "min": 64, - "max": 2048 + "minimum": 64, + "maximum": 2048 }, "slider_1": { - "name": "XDoG Threshold", - "min": 1, - "max": 64, + "label": "XDoG Threshold", + "minimum": 1, + "maximum": 64, "value": 32 }, "slider_2": None, @@ -966,17 +966,17 @@ legacy_preprocessors = { ] }, "seg_anime_face": { - "name": "seg_anime_face", + "label": "seg_anime_face", "call_function": anime_face_segment, "unload_function": unload_anime_face_segment, "managed_model": "model_anime_face_segment", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", + "label": "Preprocessor Resolution", "value": 512, - "min": 64, - "max": 2048 + "minimum": 64, + "maximum": 2048 }, "slider_1": None, "slider_2": None, @@ -987,7 +987,7 @@ legacy_preprocessors = { ] }, "seg_ofade20k": { - "name": "seg_ofade20k", + "label": "seg_ofade20k", "call_function": oneformer_ade20k, "unload_function": unload_oneformer_ade20k, "managed_model": "model_oneformer_ade20k", @@ -1003,7 +1003,7 @@ legacy_preprocessors = { ] }, "seg_ofcoco": { - "name": "seg_ofcoco", + "label": "seg_ofcoco", "call_function": oneformer_coco, "unload_function": unload_oneformer_coco, "managed_model": "model_oneformer_coco", @@ -1019,16 +1019,16 @@ legacy_preprocessors = { ] }, "seg_ufade20k": { - "name": "seg_ufade20k", + "label": "seg_ufade20k", "call_function": uniformer, "unload_function": unload_uniformer, "managed_model": "model_uniformer", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -1040,7 +1040,7 @@ legacy_preprocessors = { ] }, "shuffle": { - "name": "shuffle", + "label": "shuffle", "call_function": shuffle, "unload_function": None, "managed_model": None, @@ -1056,16 +1056,16 @@ legacy_preprocessors = { ] }, "softedge_hed": { - "name": "softedge_hed", + "label": "softedge_hed", "call_function": hed, "unload_function": unload_hed, "managed_model": "model_hed", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -1077,16 +1077,16 @@ legacy_preprocessors = { ] }, "softedge_hedsafe": { - "name": "softedge_hedsafe", + "label": "softedge_hedsafe", "call_function": hed_safe, "unload_function": None, "managed_model": "model_hed", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", - "min": 64, - "max": 2048, + "label": "Preprocessor Resolution", + "minimum": 64, + "maximum": 2048, "value": 512 }, "slider_1": None, @@ -1098,7 +1098,7 @@ legacy_preprocessors = { ] }, "softedge_pidinet": { - "name": "softedge_pidinet", + "label": "softedge_pidinet", "call_function": pidinet, "unload_function": unload_pidinet, "managed_model": "model_pidinet", @@ -1114,7 +1114,7 @@ legacy_preprocessors = { ] }, "softedge_pidisafe": { - "name": "softedge_pidisafe", + "label": "softedge_pidisafe", "call_function": pidinet_safe, "unload_function": None, "managed_model": "model_pidinet", @@ -1130,22 +1130,22 @@ legacy_preprocessors = { ] }, "softedge_teed": { - "name": "softedge_teed", + "label": "softedge_teed", "call_function": te_hed, "unload_function": unload_te_hed, "managed_model": "model_te_hed", "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", + "label": "Preprocessor Resolution", "value": 512, - "min": 64, - "max": 2048 + "minimum": 64, + "maximum": 2048 }, "slider_1": { - "name": "Safe Steps", - "min": 0, - "max": 10, + "label": "Safe Steps", + "minimum": 0, + "maximum": 10, "value": 2, "step": 1 }, @@ -1157,17 +1157,17 @@ legacy_preprocessors = { ] }, "t2ia_color_grid": { - "name": "t2ia_color_grid", + "label": "t2ia_color_grid", "call_function": color, "unload_function": None, "managed_model": None, "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", + "label": "Preprocessor Resolution", "value": 512, - "min": 64, - "max": 2048 + "minimum": 64, + "maximum": 2048 }, "slider_1": None, "slider_2": None, @@ -1178,7 +1178,7 @@ legacy_preprocessors = { ] }, "t2ia_sketch_pidi": { - "name": "t2ia_sketch_pidi", + "label": "t2ia_sketch_pidi", "call_function": pidinet_ts, "unload_function": None, "managed_model": "model_pidinet", @@ -1194,7 +1194,7 @@ legacy_preprocessors = { ] }, "t2ia_style_clipvision": { - "name": "t2ia_style_clipvision", + "label": "t2ia_style_clipvision", "call_function": functools.partial(clip, config='clip_vitl'), "unload_function": functools.partial(unload_clip, config='clip_vitl'), "managed_model": None, @@ -1210,22 +1210,22 @@ legacy_preprocessors = { ] }, "threshold": { - "name": "threshold", + "label": "threshold", "call_function": threshold, "unload_function": None, "managed_model": None, "model_free": False, "no_control_mode": False, "resolution": { - "name": "Preprocessor Resolution", + "label": "Preprocessor Resolution", "value": 512, - "min": 64, - "max": 2048 + "minimum": 64, + "maximum": 2048 }, "slider_1": { - "name": "Binarization Threshold", - "min": 0, - "max": 255, + "label": "Binarization Threshold", + "minimum": 0, + "maximum": 255, "value": 127 }, "slider_2": None, @@ -1234,7 +1234,7 @@ legacy_preprocessors = { "tags": [] }, "tile_colorfix": { - "name": "tile_colorfix", + "label": "tile_colorfix", "call_function": identity, "unload_function": None, "managed_model": None, @@ -1242,10 +1242,10 @@ legacy_preprocessors = { "no_control_mode": False, "resolution": None, "slider_1": { - "name": "Variation", + "label": "Variation", "value": 8.0, - "min": 3.0, - "max": 32.0, + "minimum": 3.0, + "maximum": 32.0, "step": 1.0 }, "slider_2": None, @@ -1256,7 +1256,7 @@ legacy_preprocessors = { ] }, "tile_colorfix+sharp": { - "name": "tile_colorfix+sharp", + "label": "tile_colorfix+sharp", "call_function": identity, "unload_function": None, "managed_model": None, @@ -1264,17 +1264,17 @@ legacy_preprocessors = { "no_control_mode": False, "resolution": None, "slider_1": { - "name": "Variation", + "label": "Variation", "value": 8.0, - "min": 3.0, - "max": 32.0, + "minimum": 3.0, + "maximum": 32.0, "step": 1.0 }, "slider_2": { - "name": "Sharpness", + "label": "Sharpness", "value": 1.0, - "min": 0.0, - "max": 2.0, + "minimum": 0.0, + "maximum": 2.0, "step": 0.01 }, "slider_3": None, @@ -1284,7 +1284,7 @@ legacy_preprocessors = { ] }, "tile_resample": { - "name": "tile_resample", + "label": "tile_resample", "call_function": tile_resample, "unload_function": None, "managed_model": None, @@ -1292,10 +1292,10 @@ legacy_preprocessors = { "no_control_mode": False, "resolution": None, "slider_1": { - "name": "Down Sampling Rate", + "label": "Down Sampling Rate", "value": 1.0, - "min": 1.0, - "max": 8.0, + "minimum": 1.0, + "maximum": 8.0, "step": 0.01 }, "slider_2": None, diff --git a/extensions-builtin/forge_legacy_preprocessors/scripts/legacy_preprocessors.py b/extensions-builtin/forge_legacy_preprocessors/scripts/legacy_preprocessors.py index 6bbd3e52..5b927658 100644 --- a/extensions-builtin/forge_legacy_preprocessors/scripts/legacy_preprocessors.py +++ b/extensions-builtin/forge_legacy_preprocessors/scripts/legacy_preprocessors.py @@ -17,7 +17,7 @@ from modules_forge.shared import Preprocessor, PreprocessorParameter, add_prepro class LegacyPreprocessor(Preprocessor): def __init__(self, legacy_dict): super().__init__() - self.name = legacy_dict['name'] + self.name = legacy_dict['label'] self.call_function = legacy_dict['call_function'] self.unload_function = legacy_dict['unload_function'] self.managed_model = legacy_dict['managed_model']