zjunlp / DeepKE

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

Lightner runtime error #477

Closed katouHui closed 6 months ago

katouHui commented 6 months ago

Describe the bug

.An error occurred while running the lightner code in Python run.py,I tried to solve the problem but still couldn't solve it, so I came to seek advice. Thank you very much

Environment (please complete the following information):

Screenshots

If applicable, add screenshots to help explain your problem. image

Additional context

Add any other context about the problem here. Traceback (most recent call last):
File "run.py", line 115, in main trainer.train() File "/home/zut/anaconda3/envs/deepke/lib/python3.8/site-packages/deepke-2.2.7-py3.8.egg/deepke/name_entity_re/few_shot/module/train.py", line 84, in train self.writer.log({ 'avg_loss':avg_loss}) AttributeError: 'NoneType' object has no attribute 'log'

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

xxupiano commented 6 months ago

请将config中的use_wandb设置为True

katouHui commented 6 months ago

Thank you very much for your answer,