qq456cvb / Point-Transformers

Point Transformers
MIT License
625 stars 103 forks source link

omegaconf.errors.ConfigAttributeError: Missing key pretty #21

Open Heroism502 opened 2 years ago

Heroism502 commented 2 years ago

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

lvhuanhuan123 commented 2 years ago

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

hengyu2333 commented 2 years ago

It needs to use hydra==1.0

pip install hydra==1.0

need to detect the GPU device

struggle2893 commented 2 years ago

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

struggle2893 commented 2 years ago

它需要使用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 https://github.com/omry/omegaconf/issues/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 commented 2 years ago

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 commented 2 years ago

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!