diff --git a/py/evf_sam/evf_sam_inference.py b/py/evf_sam/evf_sam_inference.py index 794963e..9571fa4 100644 --- a/py/evf_sam/evf_sam_inference.py +++ b/py/evf_sam/evf_sam_inference.py @@ -8,7 +8,8 @@ import torch.nn.functional as F from torchvision import transforms from torchvision.transforms.functional import InterpolationMode from transformers import AutoTokenizer, BitsAndBytesConfig -from model.segment_anything.utils.transforms import ResizeLongestSide +sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) +from .model.segment_anything.utils.transforms import ResizeLongestSide def sam_preprocess( x: np.ndarray, diff --git a/py/evf_sam/model/__init__.py b/py/evf_sam/model/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml index 9a979e3..3478845 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_layerstyle" description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress." -version = "1.0.35" +version = "1.0.36" license = "MIT" dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "opencv-contrib-python", "pymatting", "segment_anything", "timm", "addict", "yapf", "colour-science", "wget", "mediapipe", "loguru", "typer_config", "fastapi", "rich", "google-generativeai", "diffusers", "omegaconf", "tqdm", "transformers", "kornia", "image-reward", "ultralytics", "blend_modes", "blind-watermark", "qrcode", "pyzbar", "transparent-background", "huggingface_hub", "accelerate", "bitsandbytes", "torchscale", "wandb", "hydra-core", "psd-tools"]