Skip to content

Commit

Permalink
Apply isort and black reformatting
Browse files Browse the repository at this point in the history
Signed-off-by: tomlifu <[email protected]>
  • Loading branch information
tomlifu committed Feb 21, 2025
1 parent 286eeca commit b435752
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions nemo/collections/diffusion/models/flux/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import math
import os
from dataclasses import dataclass
from pathlib import Path
from typing import Callable, Optional

import os
import math

import lightning.pytorch as L
import numpy as np
import torch
Expand All @@ -45,7 +44,11 @@
)
from nemo.collections.diffusion.models.flux.layers import EmbedND, MLPEmbedder, TimeStepEmbedder
from nemo.collections.diffusion.sampler.flow_matching.flow_match_euler_discrete import FlowMatchEulerDiscreteScheduler
from nemo.collections.diffusion.utils.flux_ckpt_converter import _import_qkv, _import_qkv_bias, flux_transformer_converter
from nemo.collections.diffusion.utils.flux_ckpt_converter import (
_import_qkv,
_import_qkv_bias,
flux_transformer_converter,
)
from nemo.collections.diffusion.vae.autoencoder import AutoEncoder, AutoEncoderConfig
from nemo.collections.llm import fn
from nemo.lightning import io, teardown
Expand Down
3 changes: 2 additions & 1 deletion nemo/collections/diffusion/models/flux_controlnet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def __init__(self, config: FluxControlNetConfig):

if config.conditioning_embedding_channels is not None:
self.input_hint_block = ControlNetConditioningEmbedding(
conditioning_embedding_channels=config.conditioning_embedding_channels, block_out_channels=(16, 16, 16, 16)
conditioning_embedding_channels=config.conditioning_embedding_channels,
block_out_channels=(16, 16, 16, 16),
)
self.controlnet_x_embedder = torch.nn.Linear(config.in_channels, self.hidden_size)
else:
Expand Down

0 comments on commit b435752

Please sign in to comment.