-
Notifications
You must be signed in to change notification settings - Fork 191
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
hydra.errors.ConfigCompositionException: Error merging 'model/transformer' with schema #148
Comments
Hi! This repo is archived. Further development is conducted here. |
hello, I came with similar problem with you:
I want to know how you solved it. Thank you very much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Title
Description
./bin/main.py:167: UserWarning:
'model/transformer' is validated against ConfigStore schema with the same name.
This behavior is deprecated in Hydra 1.1 and will be removed in Hydra 1.2.
See https://hydra.cc/docs/next/upgrades/1.0_to_1.1/automatic_schema_matching for migration instructi
ons.
main()
Traceback (most recent call last):
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\config_loader_impl.py", line 455,
in _load_single_config
merged = OmegaConf.merge(schema.config, ret.config)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\omegaconf.py", line 264, in merge
target.merge_with(*configs[1:])
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\basecontainer.py", line 438, in merge_w
ith
self._format_and_raise(key=None, value=None, cause=e)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\base.py", line 196, in _format_and_rais
e
type_override=type_override,
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf_utils.py", line 741, in format_and_rai
se
_raise(ex, cause)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf_utils.py", line 719, in _raise
raise ex.with_traceback(sys.exc_info()[2]) # set end OC_CAUSE=1 for full backtrace
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\basecontainer.py", line 436, in merge_w
ith
self._merge_with(*others)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\basecontainer.py", line 460, in merge
with
BaseContainer._map_merge(self, other)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\basecontainer.py", line 378, in _map_me
rge
dest[key] = src._get_node(key)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\dictconfig.py", line 311, in _setitem
_
key=key, value=value, type_override=ConfigKeyError, cause=e
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\base.py", line 196, in _format_and_rais
e
type_override=type_override,
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf_utils.py", line 741, in format_and_rai
se
_raise(ex, cause)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf_utils.py", line 719, in _raise
raise ex.with_traceback(sys.exc_info()[2]) # set end OC_CAUSE=1 for full backtrace
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\dictconfig.py", line 308, in _setitem
_
self.__set_impl(key=key, value=value)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\dictconfig.py", line 318, in __set_impl
self._set_item_impl(key, value)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\basecontainer.py", line 493, in _set_it
em_impl
self._validate_set(key, value)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\dictconfig.py", line 180, in validate
set
target = self._get_node(key) if key is not None else self
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\dictconfig.py", line 465, in _get_node
self._validate_get(key)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\dictconfig.py", line 167, in validate
get
key=key, value=value, cause=ConfigAttributeError(msg)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf\base.py", line 196, in _format_and_rais
e
type_override=type_override,
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf_utils.py", line 821, in format_and_rai
se
_raise(ex, cause)
File "C:\Users..\Anaconda3\lib\site-packages\omegaconf_utils.py", line 719, in _raise
raise ex.with_traceback(sys.exc_info()[2]) # set end OC_CAUSE=1 for full backtrace
omegaconf.errors.ConfigKeyError: Key 'ffnet_style' not in 'TransformerConfig'
full_key: ffnet_style
object_type=TransformerConfig
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "./bin/main.py", line 167, in
main()
File "C:\Users..\Anaconda3\lib\site-packages\hydra\main.py", line 53, in decorated_main
config_name=config_name,
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\utils.py", line 368, in _run_hydr
a
lambda: hydra.run(
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\utils.py", line 214, in run_and_r
eport
raise ex
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\utils.py", line 211, in run_and_r
eport
return func()
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\utils.py", line 371, in
overrides=args.overrides,
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\hydra.py", line 91, in run
run_mode=RunMode.RUN,
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\hydra.py", line 568, in compose_c
onfig
from_shell=from_shell,
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\config_loader_impl.py", line 150,
in load_configuration
from_shell=from_shell,
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\config_loader_impl.py", line 250,
in _load_configuration_impl
defaults=defaults_list.defaults, repo=caching_repo
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\config_loader_impl.py", line 515,
in _compose_config_from_defaults_list
loaded = self._load_single_config(default=default, repo=repo)
File "C:\Users..\Anaconda3\lib\site-packages\hydra_internal\config_loader_impl.py", line 465,
in _load_single_config
) from e
hydra.errors.ConfigCompositionException: Error merging 'model/transformer' with schema
How could it solve? I tried Speech-Transformer and kospeech
Linked Issues
The text was updated successfully, but these errors were encountered: