Giter Site home page Giter Site logo

ensemppis's People

Contributors

moummj avatar

Stargazers

 avatar

Forkers

moummj

ensemppis's Issues

One question about pdb structural dataset

Hello, I have a question about your DeepPPISP and GraphPPIS dataset. I find that the dataset you providing is sequence data, but you provide experiment result about structure .Could you provide the structural dataset about DeepPPISP and GraphPPIS.

RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling `cublasSgemm( handle, opa, opb, m, n, k, &alpha, a, lda, b, ldb, &beta, c, ldc)`

when i run CUDA_VISIBLE_DEVICES=1 nohup python -m torch.distributed.launch --nproc_per_node=1 --master_port 6666 main-TransformerPPIS.py > out-TransformerPPIS.txt 2>&1 &
meet the error with CUDA_VISIBLE_DEVICES=1 nohup python -m torch.distributed.launch --nproc_per_node=1 --master_port 6666 main-TransformerPPIS.py > out-TransformerPPIS.txt 2>&1 &

The question about data_preprocess.py

In your introduction:
"Put your sequence data into the 'data_cache' folder, and run 'data_preprocess.py' in this folder to generate three pkl files, namely, encode_data.pkl, label.pkl and dset_list.pkl;"

By reading the code of data_preprocess.py, it is easy to find: only label.pkl and dset_list.pkl can be obtained, but encode_data.pkl cannot be obtained.

unable to load pretrain model and version mismatch

Hello,

I was trying to run the predictions according to the steps, unfortunately, there is some version mismatch problem which I counld not solve, I install all the packages according to the requirement.txt and set the python version to 3.7.11. But when I run the ProtBERT_feature_generator.py, following problem occured.

Traceback (most recent call last):
  File "ProtBERT_feature_generator.py", line 4, in <module>
    from transformers import BertModel, BertTokenizer
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/transformers/__init__.y", line 43, in <module>
    from . import dependency_versions_check
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/transformers/dependenc_versions_check.py", line 41, in <module>
    require_version_core(deps[pkg])
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/transformers/utils/verions.py", line 94, in require_version_core
    return require_version(requirement, hint)
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/transformers/utils/verions.py", line 85, in require_version
    if want_ver is not None and not ops[op](version.parse(got_ver), version.pars(want_ver)):
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/packaging/version.py",line 54, in parse
    return Version(version)
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/packaging/version.py",line 200, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '0.10.1,<0.11'

seems to be some version mismatch problem. I tried to uninstall the tokenizers package, so that the program can go on. and the following problem appeared.

Traceback (most recent call last):
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/transformers/modeling_utils.py", line 1038, in from_pretrained
    state_dict = torch.load(resolved_archive_file, map_location="cpu")
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/torch/serialization.py", line 386, in load
    return _load(f, map_location, pickle_module, **pickle_load_args)
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/torch/serialization.py", line 580, in _load
    deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: unexpected EOF, expected 3715186 more bytes. The file might be corrupted.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "ProtBERT_feature_generator.py", line 67, in <module>
    generate_protbert_features(file)
  File "ProtBERT_feature_generator.py", line 24, in generate_protbert_features
    model = BertModel.from_pretrained(path)
  File "/opt/conda/envs/ensem/lib/python3.7/site-packages/transformers/modeling_utils.py", line 1041, in from_pretrained
    f"Unable to load weights from pytorch checkpoint file for '{pretrained_model_name_or_path}' "
OSError: Unable to load weights from pytorch checkpoint file for './' at './pytorch_model.bin'If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

I have no idea why this problem happens, is the pretrained model a tf model? It would be nice if some help can be offered. Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.