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
9f00a180
"...fish-speech_pytorch.git" did not exist on "a7139e4b3bd7eaa096d76d0569bda7e28c6fef6f"
Commit
9f00a180
authored
Nov 16, 2023
by
comfyanonymous
Browse files
Fix potential issues.
parent
bd07ad18
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
comfy/model_patcher.py
comfy/model_patcher.py
+1
-1
comfy/utils.py
comfy/utils.py
+1
-1
No files found.
comfy/model_patcher.py
View file @
9f00a180
...
@@ -37,7 +37,7 @@ class ModelPatcher:
...
@@ -37,7 +37,7 @@ class ModelPatcher:
return
size
return
size
def
clone
(
self
):
def
clone
(
self
):
n
=
ModelPatcher
(
self
.
model
,
self
.
load_device
,
self
.
offload_device
,
self
.
size
,
self
.
current_device
)
n
=
ModelPatcher
(
self
.
model
,
self
.
load_device
,
self
.
offload_device
,
self
.
size
,
self
.
current_device
,
weight_inplace_update
=
self
.
weight_inplace_update
)
n
.
patches
=
{}
n
.
patches
=
{}
for
k
in
self
.
patches
:
for
k
in
self
.
patches
:
n
.
patches
[
k
]
=
self
.
patches
[
k
][:]
n
.
patches
[
k
]
=
self
.
patches
[
k
][:]
...
...
comfy/utils.py
View file @
9f00a180
...
@@ -258,7 +258,7 @@ def set_attr(obj, attr, value):
...
@@ -258,7 +258,7 @@ def set_attr(obj, attr, value):
for
name
in
attrs
[:
-
1
]:
for
name
in
attrs
[:
-
1
]:
obj
=
getattr
(
obj
,
name
)
obj
=
getattr
(
obj
,
name
)
prev
=
getattr
(
obj
,
attrs
[
-
1
])
prev
=
getattr
(
obj
,
attrs
[
-
1
])
setattr
(
obj
,
attrs
[
-
1
],
torch
.
nn
.
Parameter
(
value
))
setattr
(
obj
,
attrs
[
-
1
],
torch
.
nn
.
Parameter
(
value
,
requires_grad
=
False
))
del
prev
del
prev
def
copy_to_param
(
obj
,
attr
,
value
):
def
copy_to_param
(
obj
,
attr
,
value
):
...
...
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