fix: segm padding issue
https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/606#issuecomment-2157594212 refactor: MAX_RESOLUTION - use nodes.MAX_RESOLUTION instead of impact.config.MAX_RESOLUTION
This commit is contained in:
@@ -1,19 +1,16 @@
|
||||
import configparser
|
||||
import os
|
||||
|
||||
|
||||
version_code = [5, 11, 4]
|
||||
version_code = [5, 11, 5]
|
||||
version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
|
||||
|
||||
dependency_version = 20
|
||||
dependency_version = 21
|
||||
|
||||
my_path = os.path.dirname(__file__)
|
||||
old_config_path = os.path.join(my_path, "impact-pack.ini")
|
||||
config_path = os.path.join(my_path, "..", "..", "impact-pack.ini")
|
||||
latent_letter_path = os.path.join(my_path, "..", "..", "latent.png")
|
||||
|
||||
MAX_RESOLUTION = 8192
|
||||
|
||||
|
||||
def write_config():
|
||||
config = configparser.ConfigParser()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import impact.core as core
|
||||
from impact.config import MAX_RESOLUTION
|
||||
from nodes import MAX_RESOLUTION
|
||||
import impact.segs_nodes as segs_nodes
|
||||
import impact.utils as utils
|
||||
import torch
|
||||
|
||||
@@ -15,7 +15,8 @@ import impact.wildcards
|
||||
from impact.utils import *
|
||||
import impact.core as core
|
||||
from impact.core import SEG
|
||||
from impact.config import MAX_RESOLUTION, latent_letter_path
|
||||
from impact.config import latent_letter_path
|
||||
from nodes import MAX_RESOLUTION
|
||||
from PIL import Image, ImageOps
|
||||
import numpy as np
|
||||
import hashlib
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-impact-pack"
|
||||
description = "This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler."
|
||||
version = "5.11.4"
|
||||
version = "5.11.5"
|
||||
license = "LICENSE"
|
||||
dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user