Update nodes.py
This commit is contained in:
@@ -224,6 +224,7 @@ class PyramidFlowModelLoader:
|
|||||||
|
|
||||||
return (pyramid_model,)
|
return (pyramid_model,)
|
||||||
|
|
||||||
|
#region Sampler
|
||||||
class PyramidFlowSampler:
|
class PyramidFlowSampler:
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(s):
|
||||||
@@ -358,7 +359,7 @@ class PyramidFlowTextEncode:
|
|||||||
|
|
||||||
if force_offload:
|
if force_offload:
|
||||||
clip.cond_stage_model.to(offload_device)
|
clip.cond_stage_model.to(offload_device)
|
||||||
|
clip.cond_stage_model.reset_clip_options()
|
||||||
embeds = {
|
embeds = {
|
||||||
"prompt_embeds": prompt_embeds.to(device),
|
"prompt_embeds": prompt_embeds.to(device),
|
||||||
"attention_mask": prompt_attention_mask["attention_mask"].to(device),
|
"attention_mask": prompt_attention_mask["attention_mask"].to(device),
|
||||||
@@ -369,6 +370,8 @@ class PyramidFlowTextEncode:
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (embeds, )
|
return (embeds, )
|
||||||
|
|
||||||
|
#region VAE
|
||||||
class PyramidFlowVAEEncode:
|
class PyramidFlowVAEEncode:
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(s):
|
||||||
|
|||||||
Reference in New Issue
Block a user