Merge pull request #88 from telamonian/fix-instristic-spelling

Fix spelling of `intristic_loras` directory
This commit is contained in:
Jukka Seppänen 2024-06-23 13:53:03 +03:00 committed by GitHub
commit 86a1125ae1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
__pycache__ __pycache__
/venv /venv
*.code-workspace
.history
.vscode .vscode
*.ckpt *.ckpt
*.pth *.pth

View File

@ -7,7 +7,7 @@ import comfy.sample
from nodes import CLIPTextEncode from nodes import CLIPTextEncode
script_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) script_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
folder_paths.add_model_folder_path("intristic_loras", os.path.join(script_directory, "intristic_loras")) folder_paths.add_model_folder_path("intrinsic_loras", os.path.join(script_directory, "intrinsic_loras"))
class Intrinsic_lora_sampling: class Intrinsic_lora_sampling:
def __init__(self): def __init__(self):
@ -16,7 +16,7 @@ class Intrinsic_lora_sampling:
@classmethod @classmethod
def INPUT_TYPES(s): def INPUT_TYPES(s):
return {"required": { "model": ("MODEL",), return {"required": { "model": ("MODEL",),
"lora_name": (folder_paths.get_filename_list("intristic_loras"), ), "lora_name": (folder_paths.get_filename_list("intrinsic_loras"), ),
"task": ( "task": (
[ [
'depth map', 'depth map',
@ -81,7 +81,7 @@ with this node pack.
#load lora #load lora
model_clone = model.clone() model_clone = model.clone()
lora_path = folder_paths.get_full_path("intristic_loras", lora_name) lora_path = folder_paths.get_full_path("intrinsic_loras", lora_name)
lora = load_torch_file(lora_path, safe_load=True) lora = load_torch_file(lora_path, safe_load=True)
self.loaded_lora = (lora_path, lora) self.loaded_lora = (lora_path, lora)