tyhuang0428 / DreamControl

[CVPR 2024] DreamControl: Control-Based Text-to-3D Generation with 3D Self-Prior
Apache License 2.0
65 stars 2 forks source link

FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'custom' #2

Open throb081 opened 7 months ago

throb081 commented 7 months ago

您好,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,但是下载的工程里面没有这个文件夹,请问是我得自己新建么,我是在win10 ,Python3.10跑的代码

Coraaaaal commented 4 months ago

请问解决了吗?我也遇到了同样的问题

yangyaccc commented 1 month ago

似乎创建一个名为custom的文件夹就可以了