percent4 / multi-label-classification-4-event-type

multi-label-classification-4-event-type
129 stars 49 forks source link

安装 chinese_L-12_H-768_A-1报错 #1

Open Eshter opened 4 years ago

Eshter commented 4 years ago

bert-serving-start -model_dir chinese_L-12_H-768_A-12 -num_worker=1 #-http_port 8001 安装这个报错

I:VENTILATOR:[i:i: 67]:freeze, optimize and export graph, could take a while... E:GRAPHOPT:[gra:opt:154]:fail to optimize the graph! Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/bert_serving/server/graph.py", line 42, in optimize_graph tf = import_tf(verbose=args.verbose) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/bert_serving/server/helper.py", line 186, in import_tf tf.logging.set_verbosity(tf.logging.DEBUG if verbose else tf.logging.ERROR) AttributeError: module 'tensorflow' has no attribute 'logging'

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/bin/bert-serving-start", line 8, in sys.exit(main()) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/bert_serving/server/cli/init.py", line 4, in main with BertServer(get_run_args()) as server: File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/bert_serving/server/init.py", line 71, in init self.graph_path, self.bert_config = pool.apply(optimize_graph, (self.args,)) TypeError: 'NoneType' object is not iterable

Anti-entropyyy commented 3 years ago

必须得是绝对路径

Anti-entropyyy commented 3 years ago

我也报错了,蹲一个

Anti-entropyyy commented 3 years ago

ValueError: invalid literal for int() with base 10: 'NVIDIA-SMI has failed because you are not:

dogrepairditch commented 2 years ago

必须得是绝对路径

我绝对路径也是错的