Skip to content
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

omegaconf.errors.ConfigAttributeError: Missing key pretty #21

Open
Heroism502 opened this issue Nov 3, 2021 · 6 comments
Open

omegaconf.errors.ConfigAttributeError: Missing key pretty #21

Heroism502 opened this issue Nov 3, 2021 · 6 comments

Comments

@Heroism502
Copy link

请问这个问题该怎么解决
image

@lvhuanhuan123
Copy link

请问这个问题你解决了嘛?谢谢

@hengyu2333
Copy link

It needs to use hydra==1.0
#pip install hydra==1.0
#need to detect the GPU device

@struggle2893
Copy link

Has your problem been resolved? If it is solved, can you explain where the problem is and how to solve it?

@struggle2893
Copy link

它需要使用hydra==1.0#pip安装hydra==1.0#need来检测GPU设备

I tried "pip install hydra-core==1.0.1" and the installation was successful, but there are still problems. as follows:
D:\Anaconda\lib\site-packages\hydra\core\utils.py:143: UserWarning: register_resolver() is deprecated.
See omry/omegaconf#426 for migration instructions.

OmegaConf.register_resolver(name, f)
Traceback (most recent call last):
File "train_cls.py", line 52, in main
print(args.pretty())
omegaconf.errors.ConfigAttributeError: Missing key pretty
full_key: pretty
object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Can you help me solve the problem? Thanks!

@hengyu2333
Copy link

yes, i have dealed with the problem. you need to annotate or delete this line " print(args.pretty())" . I cannot find what the problem with it, i cannot find out the key-word of pretty. It maybe also problem with another thing....

@struggle2893
Copy link

yes, i have dealed with the problem. you need to annotate or delete this line " print(args.pretty())" . I cannot find what the problem with it, i cannot find out the key-word of pretty. It maybe also problem with another thing....

Thank you very much for your answer, this problem has been solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants