mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 14:20:49 +08:00
Complete moving all preprocessor nodes to custom_nodes
This commit is contained in:
parent
c1ef4fff7d
commit
e35f293621
@ -1,4 +1,4 @@
|
||||
from custom_node_module.annotator import canny, hed, midas, mlsd, openpose, uniformer
|
||||
from annotator import canny, hed, midas, mlsd, openpose, uniformer
|
||||
from annotator.util import HWC3
|
||||
import torch
|
||||
import numpy as np
|
||||
@ -116,7 +116,7 @@ class UniformerPreprocessor:
|
||||
image = img_np_to_tensor(HWC3(image))
|
||||
return (image,)
|
||||
|
||||
NODE_CLASS_MAPPING = {
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"CannyPreprocessor": CannyPreprocessor,
|
||||
"HEDPreprocessor": HEDPreprocessor,
|
||||
"DepthPreprocessor": MIDASPreprocessor,
|
||||
|
||||
2
nodes.py
2
nodes.py
@ -753,6 +753,8 @@ def load_custom_nodes():
|
||||
possible_modules = os.listdir(CUSTOM_NODE_PATH)
|
||||
if "__pycache__" in possible_modules:
|
||||
possible_modules.remove("__pycache__")
|
||||
if ".ipynb_checkpoints" in possible_modules:
|
||||
possible_modules.remove(".ipynb_checkpoints")
|
||||
|
||||
for possible_module in possible_modules:
|
||||
module_path = os.path.join(CUSTOM_NODE_PATH, possible_module)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user