Skip to content

Commit

Permalink
fix: 👷 user folder_paths to retrieve comfy root
Browse files Browse the repository at this point in the history
  • Loading branch information
melMass committed Oct 4, 2023
1 parent 90aee83 commit 38df58a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from queue import Empty, Queue
from typing import List, Optional, Union

import folder_paths
import numpy as np
import requests
import torch
Expand Down Expand Up @@ -261,7 +262,7 @@ def import_install(package_name):
here = Path(__file__).parent.absolute()

# - Construct the absolute path to the ComfyUI directory
comfy_dir = here.parent.parent
comfy_dir = Path(folder_paths.base_path)

styles_dir = comfy_dir / "styles"

Expand Down Expand Up @@ -396,7 +397,7 @@ def create_uv_map_tensor(width=512, height=512):
# region ANIMATION Utilities
def apply_easing(value, easing_type):
if value < 0 or value > 1:
raise ValueError("The value should be between 0 and 1.")
raise ValueError(f"The value should be between 0 and 1. (value is {value})")

if easing_type == "Linear":
return value
Expand Down

0 comments on commit 38df58a

Please sign in to comment.