Comments (6)
这么看应该是安装时期的网络错误,建议重新安装下。
建议国内用户把安装脚本里面关于软件源的注释打开tools/install/install-delta.sh
:
# If you are a user from mainland China, you can use following codes to speed up the installation.
# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
# conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
# conda config --set show_channel_urls yes
# pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
如果还有问题麻烦提供下更完整的log。
from delta.
嗯,谢谢你的回复,问题已经解决,现在又有了新的问题
我在运行 python3 delta/main.py --cmd train --config egs/conll2003/seq_label/v1/config/seq-label.yml
出现这样问题错误,请问这个是什么原因导致的
[ 2019-08-05 17:06:07,170 INFO py_x_ops.py:24 372969 ] x_ops.so path:/home/data01/software/delta/delta/layers/ops/x_ops.so
Traceback (most recent call last):
File "delta/main.py", line 111, in
app.run(main)
File "/home/data01/anaconda3/envs/delta-py3.6-tf1.14/lib/python3.6/site-packages/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/data01/anaconda3/envs/delta-py3.6-tf1.14/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "delta/main.py", line 64, in main
import_all_modules_for_register()
File "/home/data01/software/delta/delta/utils/register.py", line 141, in import_all_modules_for_register
importlib.import_module(full_name)
File "/home/data01/anaconda3/envs/delta-py3.6-tf1.14/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/data01/software/delta/delta/data/task/asr_seq_task.py", line 22, in
from delta.data.utils import espnet_utils
File "/home/data01/software/delta/delta/data/utils/init.py", line 17, in
from delta.data.utils.common_utils import *
File "/home/data01/software/delta/delta/data/utils/common_utils.py", line 26, in
from delta.data.preprocess.text_ops import tokenize_label
File "/home/data01/software/delta/delta/data/preprocess/text_ops.py", line 23, in
from delta.layers.ops import py_x_ops
File "/home/data01/software/delta/delta/layers/ops/py_x_ops.py", line 27, in
tf.compat.v1.resource_loader.get_path_to_datafile('x_ops.so'))
File "/home/data01/anaconda3/envs/delta-py3.6-tf1.14/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 61, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/data01/software/delta/delta/layers/ops/x_ops.so: undefined symbol: _ZN10tensorflow8str_util9LowercaseEN4absl11string_viewE
from delta.
麻烦提供下你的g++版本
from delta.
(delta-py3.6-tf1.14) [data01@localhost data]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
from delta.
这个是自定义op编译的问题。现在tensorflow在用g++4.8编译custom op的时候偶尔会有这个bug。
可以使用conda install -c conda-forge cxx-compiler
升级下当前conda环境的g++版本。
然后重新编译下custom op:
pushd delta/layers/ops/
./build.sh delta
popd
from delta.
感谢问题已解决
from delta.
Related Issues (20)
- Recipe for IEMOCAP (run.sh) failing (TypeError) HOT 1
- Pre-trained NER BERT model available? HOT 1
- raw_solver get ZeroDivisionError HOT 2
- ImportError: cannot import name 'utils'
- FileNotFoundError: No x_ops*.so match under dir: /home/xubo/delta/core/ops HOT 8
- 是否有包含align-multimodal的docker镜像? HOT 5
- Resource leak
- tensorflow_addons default install tensorlfow-gpu HOT 1
- Compile error: “g++: error trying to exec 'cc1plus': execvp: No such file or directory” HOT 5
- tensorflow dockerhub image tag changed HOT 1
- win10运行出现x_ops.cpython-36m-darwin.so not found HOT 3
- Are there documentations/tutorials for new users? HOT 2
- one error about iemocap dataset HOT 2
- When I run IEMOCAP ,I got an error HOT 3
- imocap error HOT 2
- tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python3.6/dist-packages/delta/layers/ops/x_ops.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN4absl14ascii_internal13kPropertyBitsE HOT 3
- Bug in training/inference with the cnn_dailymail dataset HOT 3
- multi_gpu_model is no longer in tensorflow.keras.utils. HOT 2
- about hkust HOT 2
- Support for Japanese Language HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delta.