fix bug of scan font files
This commit is contained in:
+4
-3
@@ -14,7 +14,8 @@ class EVF_SAM_Ultra:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
model_list = ["evf-sam2","evf-sam"]
|
||||
# model_list = ["evf-sam2","evf-sam", "evf-sam2-multitask", "evf-sam-multitask"]
|
||||
model_list = ["evf-sam2", "evf-sam"]
|
||||
precision_list = ["fp16", "bf16", "fp32"]
|
||||
load_in_bit_list = ["full", "8", "4"]
|
||||
method_list = ['VITMatte', 'VITMatte(local)', 'PyMatting', 'GuidedFilter', ]
|
||||
@@ -55,9 +56,9 @@ class EVF_SAM_Ultra:
|
||||
else:
|
||||
local_files_only = False
|
||||
|
||||
if model == 'evf-sam2':
|
||||
if model == 'evf-sam2' or model == 'evf-sam2-multitask':
|
||||
model_type = 'sam2'
|
||||
elif model == 'evf-sam':
|
||||
elif model == 'evf-sam' or model == 'evf-sam-multitask':
|
||||
model_type = 'ori'
|
||||
else:
|
||||
model_type = 'effi'
|
||||
|
||||
+2
-2
@@ -2276,8 +2276,8 @@ def get_resource_dir() -> list:
|
||||
elif line.startswith('FONT_dir='):
|
||||
_fdir = line[line.find('=') + 1:].rstrip().lstrip()
|
||||
for dir in extract_substr_from_str(_fdir):
|
||||
if os.path.exists(_fdir):
|
||||
default_font_dir.append(_fdir)
|
||||
if os.path.exists(dir):
|
||||
default_font_dir.append(dir)
|
||||
except Exception as e:
|
||||
log(f'Warning: {resource_dir_ini_file} not found' + f", default directory to be used. ")
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ class TextImage_v2:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
|
||||
(_, FONT_DICT) = get_resource_dir()
|
||||
FONT_LIST = list(FONT_DICT.keys())
|
||||
|
||||
|
||||
+1
-1
@@ -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.64"
|
||||
version = "1.0.65"
|
||||
license = "MIT"
|
||||
dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "scikit_learn", "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", "inference-cli[yolo-world]", "inference-gpu[yolo-world]", "onnxruntime"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user