Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

系统找不到指定的路径node_paths = ["custom"] #488

Open
Coraaaaal opened this issue Jul 9, 2024 · 0 comments
Open

系统找不到指定的路径node_paths = ["custom"] #488

Coraaaaal opened this issue Jul 9, 2024 · 0 comments

Comments

@Coraaaaal
Copy link

您好,def load_custom_modules():
node_paths = ["custom"]
node_import_times = []
for custom_node_path in node_paths:
possible_modules = os.listdir(custom_node_path)
if "pycache" in possible_modules:
possible_modules.remove("pycache")

for possible_module in possible_modules:
    module_path = os.path.join(custom_node_path, possible_module)
    if (
        os.path.isfile(module_path)
        and os.path.splitext(module_path)[1] != ".py"
    ):
        continue
    if module_path.endswith("_disabled"):
        continue
    time_before = time.perf_counter()
    success = load_custom_module(module_path)
    node_import_times.append(
        (time.perf_counter() - time_before, module_path, success)
    )

if len(node_import_times) > 0:
print("\nImport times for custom modules:")
for n in sorted(node_import_times):
if n[2]:
import_message = ""
else:
import_message = " (IMPORT FAILED)"
print("{:6.1f} seconds{}:".format(n[0], import_message), n[1])
print()
这个函数里面提到一个路径custom,但是下载的工程里面没有这个文件夹,请问是我得自己新建或者放入什么模型吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant