diff --git a/modules/impact/config.py b/modules/impact/config.py index ebf37c55..f1f2ba9f 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [7, 6, 1] +version_code = [7, 6, 2] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 22 diff --git a/modules/impact/impact_server.py b/modules/impact/impact_server.py index 61bd59bc..7da33f1c 100644 --- a/modules/impact/impact_server.py +++ b/modules/impact/impact_server.py @@ -24,37 +24,6 @@ from server import PromptServer -@PromptServer.instance.routes.post("/upload/temp") -async def upload_image(request): - upload_dir = folder_paths.get_temp_directory() - - if not os.path.exists(upload_dir): - os.makedirs(upload_dir) - - post = await request.post() - image = post.get("image") - - if image and image.file: - filename = image.filename - if not filename: - return web.Response(status=400) - - split = os.path.splitext(filename) - i = 1 - while os.path.exists(os.path.join(upload_dir, filename)): - filename = f"{split[0]} ({i}){split[1]}" - i += 1 - - filepath = os.path.join(upload_dir, filename) - - with open(filepath, "wb") as f: - f.write(image.file.read()) - - return web.json_response({"name": filename}) - else: - return web.Response(status=400) - - sam_predictor = None default_sam_model_name = os.path.join(impact_pack.model_path, "sams", "sam_vit_b_01ec64.pth") diff --git a/pyproject.toml b/pyproject.toml index 5acaa400..43bc52e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "7.6.1" +version = "7.6.2" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]