Comments (12)
after solving this I also met the following errors
1:AttributeError: 'Node' object has no attribute 'output_masks'
2:ImportError: cannot import name 'backend_config' from 'tensorflow.python.keras' (/home/wanghui/anaconda3/envs/env1/lib/python3.7/site-packages/tensorflow/python/keras/init.py)
from casrel.
Got same errors. Have you found any solution?
from casrel.
Got same errors. Have you found any solution?
from casrel.
Got same errors. Have you found any solution?
from casrel.
update the requirements.txt file
can solve the problem.
keras-bert = 0.80.0
tensorflow-gpu = 1.13.1
keras-layer-normalization==0.15.0
keras-multi-head==0.28.0
keras-pos-embd==0.12.0
keras-position-wise-feed-forward==0.7.0
keras-transformer==0.33.0
from casrel.
@lightCraft2020 The problem has been solved. Thank you very much!
from casrel.
@lightCraft2020 which python version you used? I tried it with 3.7 but it still gives me errors from tensorflow.backend.keras.backend and sometimes attribute errors. I am using pycham. please guide me on this.
from casrel.
@lightCraft2020 and this error: ImportError: DLL load failed: The specified module could not be found.
from casrel.
from casrel.
@WANG-HUI-NAVY Did you solved the problem already? I create conda env, employed python 3.7, and install all these requirements but still, the TensorFlow make issues. Did we need to install cuda? if yes so which version?
from casrel.
好心人解答一下,运行run.py文件时报错,显示无法找到该文件,请问best_model.weights文件是如何生成的
from casrel.
update the requirements.txt file
can solve the problem.
keras-bert = 0.80.0 tensorflow-gpu = 1.13.1 keras-layer-normalization==0.15.0 keras-multi-head==0.28.0 keras-pos-embd==0.12.0 keras-position-wise-feed-forward==0.7.0 keras-transformer==0.33.0
Yes !!! It actually works out !! Thank u very much!
I see that other guys still do not solve the problem. The point is to install it exactly as required above.
Which means:
pip install tensorflow-gpu==1.13.1 keras-bert==0.80.0 keras-layer-normalization==0.15.0 keras-multi-head==0.28.0 keras-pos-embd==0.12.0 keras-position-wise-feed-forward==0.7.0 keras-transformer==0.33.0
You can not work out by only pip install keras-bert==0.80.0
from casrel.
Related Issues (20)
- 测试时是一条一条数据进行的吗
- 能否提供一份requirements.txt HOT 1
- 环境问题 HOT 1
- 内存占用问题
- python run.py 时出现 AttributeError: 'tuple' object has no attribute 'layer' HOT 2
- 运行run.py文件时显示tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files HOT 3
- tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[6] = [6, -1] does not index into param shape [8,105,768] [[{{node lambda_3/GatherNd}}]] HOT 2
- if not a['relationMentions']: TypeError: list indices must be integers or slices, not str HOT 1
- Tensorflow and keras versions not compatible
- 'Node' object has no attribute 'output_masks'
- Prepare my own text dataset HOT 1
- 关于更换数据集的格式问题 HOT 1
- 运行run.py报错, HOT 1
- Result is very poor
- Need Help for same problem #48
- 求环境 HOT 2
- 显示无法找到该文件,saved_weights/NYT/best_model.weights' HOT 3
- Haha, I use the GPU on my laptop, but I have to set BATCH_SIZE to 1 so I don't run out of memory,there are too many Total params HOT 1
- 求一份训练好的best_model.weights
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 casrel.