Comments (13)
@kattens - is it possible that you code isn't up to date? This is already fixed here.
from protein_bert.
I'm not so sure where the problem is since I am basically only trying to run the exact same example in the notebook in colab. but I am still seeing the same errors.
from protein_bert.
@kattens Did you try to install the new version of ProteinBERT as @r-kellerm suggested?
from protein_bert.
I am following the instructions for installation:
!pip install protein-bert
then I got this:
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting protein-bert
Downloading protein_bert-1.0.1-py3-none-any.whl (39 kB)
Requirement already satisfied: tensorflow in /usr/local/lib/python3.10/dist-packages (from protein-bert) (2.9.0)
Collecting tensorflow-addons (from protein-bert)
Downloading tensorflow_addons-0.20.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 591.0/591.0 kB 11.0 MB/s eta 0:00:00
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from protein-bert) (1.22.4)
Requirement already satisfied: pandas in /usr/local/lib/python3.10/dist-packages (from protein-bert) (1.5.3)
Requirement already satisfied: h5py in /usr/local/lib/python3.10/dist-packages (from protein-bert) (3.8.0)
Requirement already satisfied: lxml in /usr/local/lib/python3.10/dist-packages (from protein-bert) (4.9.2)
Collecting pyfaidx (from protein-bert)
Downloading pyfaidx-0.7.2.1-py3-none-any.whl (28 kB)
Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.10/dist-packages (from pandas->protein-bert) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas->protein-bert) (2022.7.1)
Requirement already satisfied: six in /usr/local/lib/python3.10/dist-packages (from pyfaidx->protein-bert) (1.16.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from pyfaidx->protein-bert) (67.7.2)
Requirement already satisfied: absl-py>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (1.4.0)
Requirement already satisfied: astunparse>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (1.6.3)
Requirement already satisfied: flatbuffers<2,>=1.12 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (1.12)
Requirement already satisfied: gast<=0.4.0,>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (0.4.0)
Requirement already satisfied: google-pasta>=0.1.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (0.2.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (1.54.0)
Requirement already satisfied: keras<2.10.0,>=2.9.0rc0 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (2.9.0)
Requirement already satisfied: keras-preprocessing>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (1.1.2)
Requirement already satisfied: libclang>=13.0.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (16.0.0)
Requirement already satisfied: opt-einsum>=2.3.2 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (3.3.0)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (23.1)
Requirement already satisfied: protobuf>=3.9.2 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (3.19.6)
Requirement already satisfied: tensorboard<2.10,>=2.9 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (2.9.1)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (0.32.0)
Requirement already satisfied: tensorflow-estimator<2.10.0,>=2.9.0rc0 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (2.9.0)
Requirement already satisfied: termcolor>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (2.3.0)
Requirement already satisfied: typing-extensions>=3.6.6 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (4.5.0)
Requirement already satisfied: wrapt>=1.11.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow->protein-bert) (1.14.1)
Collecting typeguard<3.0.0,>=2.7 (from tensorflow-addons->protein-bert)
Downloading typeguard-2.13.3-py3-none-any.whl (17 kB)
Requirement already satisfied: wheel<1.0,>=0.23.0 in /usr/local/lib/python3.10/dist-packages (from astunparse>=1.6.0->tensorflow->protein-bert) (0.40.0)
Requirement already satisfied: google-auth<3,>=1.6.3 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.10,>=2.9->tensorflow->protein-bert) (2.17.3)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.10,>=2.9->tensorflow->protein-bert) (0.4.6)
Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.10,>=2.9->tensorflow->protein-bert) (3.4.3)
Requirement already satisfied: requests<3,>=2.21.0 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.10,>=2.9->tensorflow->protein-bert) (2.27.1)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.10,>=2.9->tensorflow->protein-bert) (0.6.1)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.10,>=2.9->tensorflow->protein-bert) (1.8.1)
Requirement already satisfied: werkzeug>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.10,>=2.9->tensorflow->protein-bert) (2.3.0)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from google-auth<3,>=1.6.3->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (5.3.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from google-auth<3,>=1.6.3->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (0.3.0)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.10/dist-packages (from google-auth<3,>=1.6.3->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (4.9)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.10/dist-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (1.3.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests<3,>=2.21.0->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests<3,>=2.21.0->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (2022.12.7)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests<3,>=2.21.0->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests<3,>=2.21.0->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (3.4)
Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.10/dist-packages (from werkzeug>=1.0.1->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (2.1.2)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in /usr/local/lib/python3.10/dist-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (0.5.0)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.10/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.10,>=2.9->tensorflow->protein-bert) (3.2.2)
Installing collected packages: typeguard, pyfaidx, tensorflow-addons, protein-bert
Successfully installed protein-bert-1.0.1 pyfaidx-0.7.2.1 tensorflow-addons-0.20.0 typeguard-2.13.3
I am not quite sure if this is not the updated version.
from protein_bert.
Can you try to install directly from the latest GitHub repo code (rather than pip):
git clone ...
git submodule init
git submodule update
python setup.py install
from protein_bert.
I have tried that too.
but still, this error showed up:
[2023_06_16-15:15:26] Training set: Filtered out 0 of 14945 (0.0%) records of lengths exceeding 510.
[2023_06_16-15:15:27] Validation set: Filtered out 0 of 1661 (0.0%) records of lengths exceeding 510.
[2023_06_16-15:15:27] Training with frozen pretrained layers...
Epoch 1/5
468/468 [==============================] - ETA: 0s - loss: 0.0959
WARNING:tensorflow:evaluate()
received a value for sample_weight
, but weighted_metrics
were not provided. Did you mean to pass metrics to weighted_metrics
in compile()
? If this is intentional you can pass weighted_metrics=[]
to compile()
in order to silence this warning.
468/468 [==============================] - 1551s 3s/step - loss: 0.0959 - val_loss: 0.0984 - lr: 0.0100
Epoch 2/5
468/468 [==============================] - ETA: 0s - loss: 0.0729
WARNING:tensorflow:evaluate()
received a value for sample_weight
, but weighted_metrics
were not provided. Did you mean to pass metrics to weighted_metrics
in compile()
? If this is intentional you can pass weighted_metrics=[]
to compile()
in order to silence this warning.
468/468 [==============================] - 1449s 3s/step - loss: 0.0729 - val_loss: 0.0797 - lr: 0.0100
Epoch 3/5
468/468 [==============================] - ETA: 0s - loss: 0.0717
WARNING:tensorflow:evaluate()
received a value for sample_weight
, but weighted_metrics
were not provided. Did you mean to pass metrics to weighted_metrics
in compile()
? If this is intentional you can pass weighted_metrics=[]
to compile()
in order to silence this warning.
468/468 [==============================] - 1347s 3s/step - loss: 0.0717 - val_loss: 0.0691 - lr: 0.0100
Epoch 4/5
468/468 [==============================] - ETA: 0s - loss: 0.0708
WARNING:tensorflow:evaluate()
received a value for sample_weight
, but weighted_metrics
were not provided. Did you mean to pass metrics to weighted_metrics
in compile()
? If this is intentional you can pass weighted_metrics=[]
to compile()
in order to silence this warning.
Epoch 4: ReduceLROnPlateau reducing learning rate to 0.0024999999441206455.
468/468 [==============================] - 1386s 3s/step - loss: 0.0708 - val_loss: 0.0705 - lr: 0.0100
[2023_06_16-16:51:08] Training the entire fine-tuned model...
[2023_06_16-16:51:35] Incompatible number of optimizer weights - will not initialize them.
from protein_bert.
What error?
from protein_bert.
Epoch 4: ReduceLROnPlateau reducing learning rate to 0.0024999999441206455.
468/468 [==============================] - 1386s 3s/step - loss: 0.0708 - val_loss: 0.0705 - lr: 0.0100
[2023_06_16-16:51:08] Training the entire fine-tuned model...
[2023_06_16-16:51:35] Incompatible number of optimizer weights - will not initialize them.
Epoch 1/5
305/468 [==================>...........] - ETA: 23:33 - loss: 0.0669
from protein_bert.
It looks fine.
from protein_bert.
But it's not. It's in a loop that doesn't let the model train and finish. This loop continues and never ends.
from protein_bert.
What kind of loop are you talking about? Looks like the model is just training for the number of epochs it's supposed to.
from protein_bert.
@Chinjuj2017 I see you already posted this issue elsewhere. Please avoid duplicate issues in the future.
from protein_bert.
from protein_bert.
Related Issues (20)
- Failing to get the weights from the dedicated github repo HOT 5
- Use ProteinBERT with Own Dataset HOT 3
- Original h5 file HOT 5
- loss plot during pretraining HOT 1
- signal peptide detection HOT 1
- KeyError: "Unable to open object (object 'test_set_mask' doesn't exist)" HOT 6
- How to extract the embedding of an amino acid? HOT 10
- Graph execution error HOT 6
- Extract local and global representation using finetune model HOT 1
- Running Benchmarks HOT 4
- Evaluation on larger data set HOT 6
- Using vector representations in the "weights" parameter in the "embedding" section of an LSTM model after fine-tuning my own data HOT 1
- Failing to extract global embedding (1,15599) -> (1,512) HOT 1
- What do the settings mean? HOT 3
- Error when trying to run the finetuning code given in the jupyter notebook HOT 4
- ValueError, set_weights error HOT 3
- model_generation.py list is not callable error HOT 2
- GO annotations during fine tuning HOT 1
- Missing MajorPTMs train CSV file HOT 1
- Can't get proteinBERT to run on GPU HOT 1
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 protein_bert.