Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
7f4725f6
"tools/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "79aec8f2629fd7df2f7577d0b069f15b24a00440"
Commit
7f4725f6
authored
Jan 27, 2024
by
comfyanonymous
Browse files
Fix some issues with --gpu-only
parent
fc196aac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
comfy_extras/nodes_post_processing.py
comfy_extras/nodes_post_processing.py
+1
-0
comfy_extras/nodes_stable3d.py
comfy_extras/nodes_stable3d.py
+1
-1
No files found.
comfy_extras/nodes_post_processing.py
View file @
7f4725f6
...
@@ -33,6 +33,7 @@ class Blend:
...
@@ -33,6 +33,7 @@ class Blend:
CATEGORY
=
"image/postprocessing"
CATEGORY
=
"image/postprocessing"
def
blend_images
(
self
,
image1
:
torch
.
Tensor
,
image2
:
torch
.
Tensor
,
blend_factor
:
float
,
blend_mode
:
str
):
def
blend_images
(
self
,
image1
:
torch
.
Tensor
,
image2
:
torch
.
Tensor
,
blend_factor
:
float
,
blend_mode
:
str
):
image2
=
image2
.
to
(
image1
.
device
)
if
image1
.
shape
!=
image2
.
shape
:
if
image1
.
shape
!=
image2
.
shape
:
image2
=
image2
.
permute
(
0
,
3
,
1
,
2
)
image2
=
image2
.
permute
(
0
,
3
,
1
,
2
)
image2
=
comfy
.
utils
.
common_upscale
(
image2
,
image1
.
shape
[
2
],
image1
.
shape
[
1
],
upscale_method
=
'bicubic'
,
crop
=
'center'
)
image2
=
comfy
.
utils
.
common_upscale
(
image2
,
image1
.
shape
[
2
],
image1
.
shape
[
1
],
upscale_method
=
'bicubic'
,
crop
=
'center'
)
...
...
comfy_extras/nodes_stable3d.py
View file @
7f4725f6
...
@@ -46,7 +46,7 @@ class StableZero123_Conditioning:
...
@@ -46,7 +46,7 @@ class StableZero123_Conditioning:
encode_pixels
=
pixels
[:,:,:,:
3
]
encode_pixels
=
pixels
[:,:,:,:
3
]
t
=
vae
.
encode
(
encode_pixels
)
t
=
vae
.
encode
(
encode_pixels
)
cam_embeds
=
camera_embeddings
(
elevation
,
azimuth
)
cam_embeds
=
camera_embeddings
(
elevation
,
azimuth
)
cond
=
torch
.
cat
([
pooled
,
cam_embeds
.
repeat
((
pooled
.
shape
[
0
],
1
,
1
))],
dim
=-
1
)
cond
=
torch
.
cat
([
pooled
,
cam_embeds
.
to
(
pooled
.
device
).
repeat
((
pooled
.
shape
[
0
],
1
,
1
))],
dim
=-
1
)
positive
=
[[
cond
,
{
"concat_latent_image"
:
t
}]]
positive
=
[[
cond
,
{
"concat_latent_image"
:
t
}]]
negative
=
[[
torch
.
zeros_like
(
pooled
),
{
"concat_latent_image"
:
torch
.
zeros_like
(
t
)}]]
negative
=
[[
torch
.
zeros_like
(
pooled
),
{
"concat_latent_image"
:
torch
.
zeros_like
(
t
)}]]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment