Skip to content

Commit 7c91e54

Browse files
authored
Merge pull request #402 from MrForExample/dev
Fix ComfyUI-Manager Install error
2 parents 0880fa8 + 963df74 commit 7c91e54

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Gen_3D_Modules/InstantMesh/utils/infer_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import imageio
3-
import rembg
43
import torch
54
import numpy as np
65
import PIL.Image
@@ -13,6 +12,7 @@ def remove_background(image: PIL.Image.Image,
1312
force: bool = False,
1413
**rembg_kwargs,
1514
) -> PIL.Image.Image:
15+
import rembg
1616
do_remove = True
1717
if image.mode == "RGBA" and image.getextrema()[3][0] < 255:
1818
do_remove = False

Gen_3D_Modules/StableFast3D/sf3d/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Any
22

33
import numpy as np
4-
import rembg
54
import torch
65
from PIL import Image
76

@@ -41,6 +40,7 @@ def remove_background(
4140
force: bool = False,
4241
**rembg_kwargs,
4342
) -> Image:
43+
import rembg
4444
do_remove = True
4545
if image.mode == "RGBA" and image.getextrema()[3][0] < 255:
4646
do_remove = False

Gen_3D_Modules/TriplaneGaussian/utils/ops.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import torch.nn.functional as F
66
from torch.autograd import Function
77
from torch.amp import custom_bwd, custom_fwd
8-
from pytorch3d import io
98
from pytorch3d.renderer import (
109
PointsRasterizationSettings,
1110
PointsRasterizer)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-3d-pack"
33
description = "Make ComfyUI generates 3D assets as good & convenient as it generates image/video!"
4-
version = "0.1.3.alpha"
4+
version = "0.1.3"
55
license = { file = "LICENSE" }
66
dynamic = ["dependencies"]
77
[tool.setuptools.dynamic]

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ peft
3131

3232
# for process images & videos
3333
rembg
34+
onnxruntime
3435
imageio
3536
imageio-ffmpeg
3637
matplotlib

0 commit comments

Comments
 (0)