You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
您好,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,但是下载的工程里面没有这个文件夹,请问是我得自己新建或者放入什么模型吗?
The text was updated successfully, but these errors were encountered:
您好,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")
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,但是下载的工程里面没有这个文件夹,请问是我得自己新建或者放入什么模型吗?
The text was updated successfully, but these errors were encountered: