-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Flux and Flux Controlnet Support to Diffusion folder #11794
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
…oising loop. Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
…anm/diffusion # Conflicts: # nemo/collections/diffusion/flux/pipeline.py
# Conflicts: # nemo/collections/diffusion/__init__.py # nemo/collections/diffusion/vae/__init__.py
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
# Conflicts: # nemo/collections/diffusion/vae/autoencoder.py # nemo/lightning/megatron_parallel.py # scripts/dit/dit_train.py
Signed-off-by: mingyuanm <[email protected]>
Saves the inference results together with the hint image to log folder. | ||
''' | ||
logging.info("Start validation step") | ||
from nemo.collections.diffusion.models.flux.pipeline import FluxControlNetInferencePipeline |
Check notice
Code scanning / CodeQL
Cyclic import Note
nemo.collections.diffusion.models.flux.pipeline
from megatron.core.distributed.custom_fsdp import FullyShardedDataParallel | ||
|
||
use_custom_fsdp = True | ||
except: |
Check notice
Code scanning / CodeQL
Except block handles 'BaseException' Note
use_custom_fsdp = True | ||
except: | ||
use_custom_fsdp = False | ||
pass |
Check warning
Code scanning / CodeQL
Unnecessary pass Warning
# if not self._cpu: | ||
# model_module.cuda(torch.cuda.current_device()) |
Check notice
Code scanning / CodeQL
Commented-out code Note
Signed-off-by: mingyuanm <[email protected]>
Signed-off-by: Victor49152 <[email protected]>
@ethanhe42 I have moved the dit scripts into scrips folder as a NeMo 2 convention. Please take a look. |
beep boop 🤖: 🙏 The following files have warnings. In case you are familiar with these, please try helping us to improve the code base. Your code was analyzed with PyLint. The following annotations have been identified:
Mitigation guide:
By applying these rules, we reduce the occurance of this message in future. Thank you for improving NeMo's documentation! |
What does this PR do ?
Add Flux and Flux Controlnet Support
Collection: [DIFFUSION]
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.