WongKinYiu / yolor

implementation of paper - You Only Learn One Representation: Unified Network for Multiple Tasks (https://arxiv.org/abs/2105.04206)
GNU General Public License v3.0
1.99k stars 518 forks source link

wandb error #54

Open hjy823691969 opened 3 years ago

hjy823691969 commented 3 years ago

‘wandb.errors.Error: You must call wandb.init() before wandb.log()’

你好,训练好的YOLOR模型,在测试过程中出现这样的问题,该如何解决呢? 非常感谢。

Deadpool5549 commented 2 years ago

Hi, I am facing same problem, did you find any solution? Thanks

Deadpool5549 commented 2 years ago

https://github.com/ultralytics/yolov5/issues/1356 Similar issue ig

Deadpool5549 commented 2 years ago

W&B logging

wandb.init()
if plots and wandb:
    wandb.log({"Images": wandb_images})
    wandb.log({"Validation": [wandb.Image(str(x), caption=x.name) for x in sorted(save_dir.glob('test*.jpg'))]})

adding a line wandb.init() in test.py() line:239 solved it for me