forked from comfyanonymous/ComfyUI
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests, improve distributed worker health check, add torch compile…
… options
- Loading branch information
doctorpangloss
committed
Sep 14, 2024
1 parent
ffb4ed9
commit 83b2f01
Showing
15 changed files
with
225 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
import os | ||
import yaml | ||
import logging | ||
|
||
def load_extra_path_config(yaml_path): | ||
from . import folder_paths | ||
from ..extra_config import load_extra_path_config | ||
|
||
with open(yaml_path, 'r') as stream: | ||
config = yaml.safe_load(stream) | ||
for c in config: | ||
conf = config[c] | ||
if conf is None: | ||
continue | ||
base_path = None | ||
if "base_path" in conf: | ||
base_path = conf.pop("base_path") | ||
for x in conf: | ||
for y in conf[x].split("\n"): | ||
if len(y) == 0: | ||
continue | ||
full_path = y | ||
if base_path is not None: | ||
full_path = os.path.join(base_path, full_path) | ||
logging.info(f"Adding extra search path {x} ({full_path})") | ||
folder_paths.add_model_folder_path(x, full_path) | ||
return load_extra_path_config(yaml_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.