The flag 'log_dir' is defined twice. First from absl.logging, Second from train.py. Description from first occurrence: directory to write logfiles into.
这是tensorflow1.14版本问题,tf1.14本身就定义了logging,不需要二次定义。
报错显示Second from train.py,只需要在train.py中找到对应的log定义代码,删掉就好。
Tensorflow error:The flag ‘log_dir‘ is defined twice.
在TensorFlow1.14版本中遇到了log_dir被重复定义的问题,错误源于absl.logging和train.py。解决方案是检查并删除train.py中自定义的log_dir定义,以消除冲突。
摘要由CSDN通过智能技术生成