[Feature][Diffusion]: CFG parallelism support for Boogu-Image (#6786)
Signed-off-by: nagisa <1434936049@qq.com> Signed-off-by: nagisa-kun <1434936049@qq.com>
This commit is contained in:
1 parent
376b28aced
commit
8f284b343a
13 files changed
+792
-78
No files matched your search
@@ -322,6 +322,11 @@ def is_pipeline_last_stage():
|
||||
|
||||
|
||||
# CFG
|
||||
def is_cfg_group_initialized() -> bool:
|
||||
"""Return whether the classifier-free-guidance group has been created."""
|
||||
return _CFG is not None
|
||||
|
||||
|
||||
def get_cfg_group() -> GroupCoordinator:
|
||||
assert _CFG is not None, "classifier_free_guidance parallel group is not initialized"
|
||||
return _CFG
|
||||
|
||||
Reference in new issue
Block a user