From 210e36fbb0eba9a8ac5f897094ff0b1723803ab2 Mon Sep 17 00:00:00 2001 From: logtd Date: Fri, 23 Feb 2024 16:06:19 -0700 Subject: [PATCH] updated models path --- README.md | 2 +- instance_models/fuser_models/place_fusers_ckpt_here | 0 .../positionnet_models/place_positionnet_ckpt_here | 0 instance_models/scaleu_models/place_scaleu_ckpt_here | 0 utils/model_utils.py | 5 ++--- 5 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 instance_models/fuser_models/place_fusers_ckpt_here delete mode 100644 instance_models/positionnet_models/place_positionnet_ckpt_here delete mode 100644 instance_models/scaleu_models/place_scaleu_ckpt_here diff --git a/README.md b/README.md index 8cc803d..a5d2968 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Clone or download this repo into your `ComfyUI/custom_nodes/` directory. Then run `pip install -r requirments.txt` within the cloned repo (although if you have already set up ComfyUI you should have all these requirements already). ### How to Configure Models -Download each of these checkpoints and place them into the Installation Directory within `ComfyUI/custom_nodes/ComfyUI-InstanceDiffusion/` directory created. +Download each of these checkpoints and place them into the Installation Directory within `ComfyUI/models/instance_models/` directory. | Model Name | URL | Installation Directory | |------------|-----|------------------------| diff --git a/instance_models/fuser_models/place_fusers_ckpt_here b/instance_models/fuser_models/place_fusers_ckpt_here deleted file mode 100644 index e69de29..0000000 diff --git a/instance_models/positionnet_models/place_positionnet_ckpt_here b/instance_models/positionnet_models/place_positionnet_ckpt_here deleted file mode 100644 index e69de29..0000000 diff --git a/instance_models/scaleu_models/place_scaleu_ckpt_here b/instance_models/scaleu_models/place_scaleu_ckpt_here deleted file mode 100644 index e69de29..0000000 diff --git a/utils/model_utils.py b/utils/model_utils.py index 5e9fe30..db53d0b 100644 --- a/utils/model_utils.py +++ b/utils/model_utils.py @@ -7,9 +7,8 @@ from .. import constants def get_model_dir(model_dir): - root_path = folder_paths.folder_names_and_paths['custom_nodes'][0][0] - path = os.path.join(root_path, 'ComfyUI-InstanceDiffusion', constants.INSTANCE_MODELS_DIR, - model_dir) + root_path = folder_paths.models_dir + path = os.path.join(root_path, constants.INSTANCE_MODELS_DIR, model_dir) return path