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
44fea050
Commit
44fea050
authored
Apr 07, 2023
by
comfyanonymous
Browse files
Cleanup.
parent
58ed0f2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
comfy/diffusers_convert.py
comfy/diffusers_convert.py
+0
-4
nodes.py
nodes.py
+2
-2
No files found.
comfy/diffusers_convert.py
View file @
44fea050
...
@@ -2,10 +2,6 @@ import json
...
@@ -2,10 +2,6 @@ import json
import
os
import
os
import
yaml
import
yaml
# because of local import nonsense
import
sys
sys
.
path
.
append
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)))
import
folder_paths
import
folder_paths
from
comfy.ldm.util
import
instantiate_from_config
from
comfy.ldm.util
import
instantiate_from_config
from
comfy.sd
import
ModelPatcher
,
load_model_weights
,
CLIP
,
VAE
from
comfy.sd
import
ModelPatcher
,
load_model_weights
,
CLIP
,
VAE
...
...
nodes.py
View file @
44fea050
...
@@ -10,11 +10,11 @@ from PIL import Image
...
@@ -10,11 +10,11 @@ from PIL import Image
from
PIL.PngImagePlugin
import
PngInfo
from
PIL.PngImagePlugin
import
PngInfo
import
numpy
as
np
import
numpy
as
np
from
comfy.diffusers_convert
import
load_diffusers
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy"
))
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy"
))
import
comfy.diffusers_convert
import
comfy.samplers
import
comfy.samplers
import
comfy.sd
import
comfy.sd
import
comfy.utils
import
comfy.utils
...
@@ -241,7 +241,7 @@ class DiffusersLoader:
...
@@ -241,7 +241,7 @@ class DiffusersLoader:
model_path
=
os
.
path
.
join
(
search_path
,
model_path
)
model_path
=
os
.
path
.
join
(
search_path
,
model_path
)
break
break
return
load_diffusers
(
model_path
,
fp16
=
model_management
.
should_use_fp16
(),
output_vae
=
output_vae
,
output_clip
=
output_clip
,
embedding_directory
=
folder_paths
.
get_folder_paths
(
"embeddings"
))
return
comfy
.
diffusers_convert
.
load_diffusers
(
model_path
,
fp16
=
model_management
.
should_use_fp16
(),
output_vae
=
output_vae
,
output_clip
=
output_clip
,
embedding_directory
=
folder_paths
.
get_folder_paths
(
"embeddings"
))
class
unCLIPCheckpointLoader
:
class
unCLIPCheckpointLoader
:
...
...
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