mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-14 11:07:24 +08:00
name updates
This commit is contained in:
parent
640109efb3
commit
e976529c52
@ -4,12 +4,12 @@ from comfy_api.latest import ComfyExtension, IO
|
|||||||
from comfy.bg_removal_model import load
|
from comfy.bg_removal_model import load
|
||||||
|
|
||||||
|
|
||||||
class LoadBackGroundRemovalModel(IO.ComfyNode):
|
class LoadBackgroundRemovalModel(IO.ComfyNode):
|
||||||
@classmethod
|
@classmethod
|
||||||
def define_schema(cls):
|
def define_schema(cls):
|
||||||
files = folder_paths.get_filename_list("background_removal")
|
files = folder_paths.get_filename_list("background_removal")
|
||||||
return IO.Schema(
|
return IO.Schema(
|
||||||
node_id="LoadBackGroundRemovalModel",
|
node_id="LoadBackgroundRemovalModel",
|
||||||
category="loaders",
|
category="loaders",
|
||||||
inputs=[
|
inputs=[
|
||||||
IO.Combo.Input("bg_removal_name", options=sorted(files)),
|
IO.Combo.Input("bg_removal_name", options=sorted(files)),
|
||||||
@ -26,7 +26,7 @@ class LoadBackGroundRemovalModel(IO.ComfyNode):
|
|||||||
raise RuntimeError("ERROR: background model file is invalid and does not contain a valid background removal model.")
|
raise RuntimeError("ERROR: background model file is invalid and does not contain a valid background removal model.")
|
||||||
return IO.NodeOutput(bg)
|
return IO.NodeOutput(bg)
|
||||||
|
|
||||||
class RemoveBackGround(IO.ComfyNode):
|
class RemoveBackground(IO.ComfyNode):
|
||||||
@classmethod
|
@classmethod
|
||||||
def define_schema(cls):
|
def define_schema(cls):
|
||||||
return IO.Schema(
|
return IO.Schema(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user