The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Remove useless code.
comfyanonymous79f73a4b33c7
diff --git a/comfy/ldm/modules/diffusionmodules/openaimodel.py b/comfy/ldm/modules/diffusionmodules/openaimodel.pyindex 057dd16b2..cb0a79835 100644--- a/comfy/ldm/modules/diffusionmodules/openaimodel.py+++ b/comfy/ldm/modules/diffusionmodules/openaimodel.py@@ -437,9 +437,6 @@ class UNetModel(nn.Module):operations=ops,):super().__init__()- assert use_spatial_transformer == True, "use_spatial_transformer has to be true"- if use_spatial_transformer:- assert context_dim is not None, 'Fool!! You forgot to include the dimension of your cross-attention conditioning...'if context_dim is not None:assert use_spatial_transformer, 'Fool!! You forgot to use the spatial transformer for your cross-attention conditioning...'@@ -456,7 +453,6 @@ class UNetModel(nn.Module):if num_head_channels == -1:assert num_heads != -1, 'Either num_heads or num_head_channels has to be set'- self.image_size = image_sizeself.in_channels = in_channelsself.model_channels = model_channelsself.out_channels = out_channels