-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bert not working properly #68
Comments
Or anyone who has working version of bert please can you upload the output of conda list. |
You need tensorflow2.5.0 or higher version of it. Since keras is already a inner part pf tensorflow2.5.0, you don't need to install keras individually. |
I have tried using tensorflow version 2.6.0 but the environment has conflicts which creates problems. Could you please upload your environment.yml file or share the result of conda list so that I have a proper environment where everything works |
If you share all the different packages you're using then I could just use your anaconda environment and avoid all the different conflicts that are in my environment. |
All you need is to uninstall Keras in the original environment, install tensorflow2.5.0 and upgrate hdpy into the latest version. Then you have to make some changes about the import of the modules. For example, you have to change "import keras.XXX" into "import tensorflow.keras.XXX", and change "import keras.layers.XXX" into "import tensorflow.keras.layers".
…------------------ 原始邮件 ------------------
发件人: "nilmtk/nilmtk-contrib" ***@***.***>;
发送时间: 2022年4月25日(星期一) 下午3:39
***@***.***>;
***@***.******@***.***>;
主题: Re: [nilmtk/nilmtk-contrib] Bert not working properly (Issue #68)
If you share all the different packages you're using then I could just use your anaconda environment and avoid all the different conflicts that are in my environment.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
@paulfrank1997 Hello, I installed tensorflow 2.5.0, and h5py is currently updated to the latest 3.7.0, but an error is reported after running, prompting ImportError: Layer (type) Output Shape Param #conv1d (Conv1D) (None, 99, 16) 80 l_ppool (LPpool) (None, 50, 16) 0 token_and_position_embedding (None, 50, 16, 32) 643168 transformer_block (Transform (None, 50, 16, 32) 10656 flatten (Flatten) (None, 25600) 0 dropout_2 (Dropout) (None, 25600) 0 dense_2 (Dense) (None, 99) 2534499 dropout_3 (Dropout) (None, 99) 0Total params: 3,188,403 Epoch 1/50 Epoch 00001: val_loss improved from inf to 0.66698, saving model to BERT-temp-weights-74894.h5 |
@xuuurq I met the same problem as you did: "ImportError: save_model requires h5py". But after I upgrate hdpy into the latest version by "pip install --upgrade h5py", the problem got solved. The version of h5py I used is 3.6.0, and now everything worked fine. |
@paulfrank1997 Sorry to bother you again, I think there are a few more questions:
|
All you need is to uninstall Keras in the original environment, install tensorflow2.5.0 and upgrate h5py into the latest version. Then you have to make some changes about the import of the modules. For example, you have to change "import keras.XXX" into "import tensorflow.keras.XXX", and change "import keras.layers.XXX" into "import tensorflow.keras.layers".
…------------------ 原始邮件 ------------------
发件人: "nilmtk/nilmtk-contrib" ***@***.***>;
发送时间: 2022年4月25日(星期一) 下午3:39
***@***.***>;
***@***.******@***.***>;
主题: Re: [nilmtk/nilmtk-contrib] Bert not working properly (Issue #68)
If you share all the different packages you're using then I could just use your anaconda environment and avoid all the different conflicts that are in my environment.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Can anyone upload the environment.yml or the versions of keras, tensorflow, nilmtk, nilmtk-contrib as bert requires keras.layers.multi_head_attention and it does not work properly with the versions of keras used after conda installing nilmtk and nilmtk-contrib. upgrading keras and tensorflow causes conflicts after which nilmtk cannot be used.
The text was updated successfully, but these errors were encountered: