zjunlp / DeepKE

[EMNLP 2022] An Open Toolkit for Knowledge Graph Extraction and Construction
http://deepke.zjukg.cn/
MIT License
3.6k stars 694 forks source link

re few-shot中hydra配置问题 #438

Closed XiChen211 closed 8 months ago

XiChen211 commented 8 months ago

Describe the bug

A clear and concise description of what the bug is. re few-shot按照示例步骤配置完环境,下载完数据集后,尝试运行run.py,出现hydra.errors.MissingConfigException: Could not load override hydra/output/custom image

zxlzr commented 8 months ago

请您重新拉取代码跑一下试一试

xxupiano commented 8 months ago

请检查hydra版本

XiChen211 commented 8 months ago

请您重新拉取代码跑一下试一试

image 您好,我重新拉取了代码还是出现同样的问题。

XiChen211 commented 8 months ago

请检查hydra版本

image 您好,我的hydra版本是按照requirements要求的1.0.6

flow3rdown commented 8 months ago

配置文件有问题,您可以拉取一下最新代码或者手动把DeepKE/example/re/few-shot/conf/config.yaml改为:

cwd: ???

defaults:
  - hydra/output: custom
  - train
zxlzr commented 8 months ago

请问您问题解决了吗

XiChen211 commented 8 months ago

配置文件有问题,您可以拉取一下最新代码或者手动把DeepKE/example/re/few-shot/conf/config.yaml改为:

cwd: ???

defaults:
  - hydra/output: custom
  - train

谢谢您,更改配置之后就可以训练模型了。

XiChen211 commented 8 months ago

请问您问题解决了吗

谢谢您,问题已解决。

meimengiii commented 7 months ago

Traceback (most recent call last): File "D:/DeepKE-main/example/re/standard/run.py", line 178, in main() File "D:\Anaconda\envs\deepke\lib\site-packages\hydra\main.py", line 32, in decorated_main _run_hydra( File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\utils.py", line 346, in _run_hydra run_and_report( File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\utils.py", line 201, in run_and_report raise ex File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\utils.py", line 198, in run_and_report return func() File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\utils.py", line 347, in lambda: hydra.run( File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\hydra.py", line 100, in run cfg = self.compose_config( File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\hydra.py", line 507, in compose_config cfg = self.config_loader.load_configuration( File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\config_loader_impl.py", line 151, in load_configuration return self._load_configuration( File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\config_loader_impl.py", line 256, in _load_configuration cfg = self._merge_defaults_into_config( File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\config_loader_impl.py", line 804, in _merge_defaults_into_config hydra_cfg = merge_defaults_list_into_config(hydra_cfg, system_list) File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\config_loader_impl.py", line 777, in merge_defaults_list_into_config merged_cfg = self._merge_config( File "D:\Anaconda\envs\deepke\lib\site-packages\hydra_internal\config_loader_impl.py", line 715, in _merge_config raise MissingConfigException(msg, new_cfg, options) hydra.errors.MissingConfigException: Could not load hydra/output/custom. Available options: default 修改了都没用啊

xxupiano commented 7 months ago

请检查hydra版本是否为1.0.6

meimengiii commented 7 months ago

没问题,是1.0.6