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
c6e34963
"...resnet50_tensorflow.git" did not exist on "9ac54873f7ac15cec6e203a30b72615c3dfc1d75"
Commit
c6e34963
authored
May 08, 2023
by
comfyanonymous
Browse files
Make t2i adapter work with any latent resolution.
parent
a8705dbf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
comfy/t2i_adapter/adapter.py
comfy/t2i_adapter/adapter.py
+6
-1
No files found.
comfy/t2i_adapter/adapter.py
View file @
c6e34963
...
@@ -56,7 +56,12 @@ class Downsample(nn.Module):
...
@@ -56,7 +56,12 @@ class Downsample(nn.Module):
def
forward
(
self
,
x
):
def
forward
(
self
,
x
):
assert
x
.
shape
[
1
]
==
self
.
channels
assert
x
.
shape
[
1
]
==
self
.
channels
return
self
.
op
(
x
)
if
not
self
.
use_conv
:
padding
=
[
x
.
shape
[
2
]
%
2
,
x
.
shape
[
3
]
%
2
]
self
.
op
.
padding
=
padding
x
=
self
.
op
(
x
)
return
x
class
ResnetBlock
(
nn
.
Module
):
class
ResnetBlock
(
nn
.
Module
):
...
...
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