-
I am implementing control net for the image generation. Below are relevant parts of error and code Please let me know if anyone has ideas about the error Error:ValueError Traceback (most recent call last) ~/GenerativeModels/generative/networks/nets/diffusion_model_unet.py in init(self, spatial_dims, in_channels, out_channels, num_res_blocks, num_channels, attention_levels, norm_num_groups, norm_eps, resblock_updown, num_head_channels, with_conditioning, transformer_num_layers, cross_attention_dim, num_class_embeds, upcast_attention, use_flash_attention) ~/GenerativeModels/generative/networks/nets/diffusion_model_unet.py in get_down_block(spatial_dims, in_channels, out_channels, temb_channels, num_res_blocks, norm_num_groups, norm_eps, add_downsample, resblock_updown, with_attn, with_cross_attn, num_head_channels, transformer_num_layers, cross_attention_dim, upcast_attention, use_flash_attention) ~/GenerativeModels/generative/networks/nets/diffusion_model_unet.py in init(self, spatial_dims, in_channels, out_channels, temb_channels, num_res_blocks, norm_num_groups, norm_eps, add_downsample, resblock_updown, downsample_padding, num_head_channels, transformer_num_layers, cross_attention_dim, upcast_attention, use_flash_attention) ~/GenerativeModels/generative/networks/nets/diffusion_model_unet.py in init(self, spatial_dims, in_channels, num_attention_heads, num_head_channels, num_layers, dropout, norm_num_groups, norm_eps, cross_attention_dim, upcast_attention, use_flash_attention) ~/GenerativeModels/generative/networks/nets/diffusion_model_unet.py in (.0) ~/GenerativeModels/generative/networks/nets/diffusion_model_unet.py in init(self, num_channels, num_attention_heads, num_head_channels, dropout, cross_attention_dim, upcast_attention, use_flash_attention) ~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/networks/blocks/mlp.py in init(self, hidden_size, mlp_dim, dropout_rate, act, dropout_mode) ~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/networks/layers/utils.py in get_act_layer(name) ~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/networks/layers/factories.py in getitem(self, args) ~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/networks/layers/factories.py in get_constructor(self, factory_name, *args) ~/anaconda3/envs/monai/lib/python3.7/site-packages/monai/utils/module.py in look_up_option(opt_str, supported, default, print_all_options) ValueError: By 'GEGLU', did you mean 'GELU'? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @Aman0phy, what MONAI version did you use? I think we have
|
Beta Was this translation helpful? Give feedback.
So that makes sense, we introduced the
GEGLU
in 1.2. Could you please upgrade the MONAI version?MONAI/monai/networks/layers/factories.py
Line 312 in c33f1ba