Merge pull request #402 from MrForExample/dev

Fix ComfyUI-Manager Install error
This commit is contained in:
Mr. For Example
2024-12-17 17:50:49 -06:00
committed by GitHub
5 changed files with 4 additions and 4 deletions
@@ -1,6 +1,5 @@
import os
import imageio
import rembg
import torch
import numpy as np
import PIL.Image
@@ -13,6 +12,7 @@ def remove_background(image: PIL.Image.Image,
force: bool = False,
**rembg_kwargs,
) -> PIL.Image.Image:
import rembg
do_remove = True
if image.mode == "RGBA" and image.getextrema()[3][0] < 255:
do_remove = False
+1 -1
View File
@@ -1,7 +1,6 @@
from typing import Any
import numpy as np
import rembg
import torch
from PIL import Image
@@ -41,6 +40,7 @@ def remove_background(
force: bool = False,
**rembg_kwargs,
) -> Image:
import rembg
do_remove = True
if image.mode == "RGBA" and image.getextrema()[3][0] < 255:
do_remove = False
@@ -5,7 +5,6 @@ import torch
import torch.nn.functional as F
from torch.autograd import Function
from torch.amp import custom_bwd, custom_fwd
from pytorch3d import io
from pytorch3d.renderer import (
PointsRasterizationSettings,
PointsRasterizer)
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-3d-pack"
description = "Make ComfyUI generates 3D assets as good & convenient as it generates image/video!"
version = "0.1.3.alpha"
version = "0.1.3"
license = { file = "LICENSE" }
dynamic = ["dependencies"]
[tool.setuptools.dynamic]
+1
View File
@@ -31,6 +31,7 @@ peft
# for process images & videos
rembg
onnxruntime
imageio
imageio-ffmpeg
matplotlib