mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-14 19:17:32 +08:00
update error message
This commit is contained in:
parent
34b5329400
commit
25588af857
@ -23,7 +23,7 @@ class LoadBackGroundRemovalModel(IO.ComfyNode):
|
|||||||
path = folder_paths.get_full_path_or_raise("background_removal", background_removal_name)
|
path = folder_paths.get_full_path_or_raise("background_removal", background_removal_name)
|
||||||
bg = load(path)
|
bg = load(path)
|
||||||
if bg is None:
|
if bg is None:
|
||||||
raise RuntimeError("ERROR: clip vision file is invalid and does not contain a valid vision 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):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user