Code Monkey home page Code Monkey logo

Comments (7)

paulrbuckley avatar paulrbuckley commented on August 22, 2024

Hi,

I would like to report I am having the same issue, but by running the 'flexible_model_eval.py' script using provided data and suggested terminal arguments. I am wondering I am missing something?

Best,

Paul
Cursor_and_TITAN-main_—-bash—_188×45.pdf

from titan.

jannisborn avatar jannisborn commented on August 22, 2024

HI @paulrbuckley and @Lihua1990
Thanks for your interest in our work and sorry for the late reply.

Did you verify that the path used at L140 (model_dir/protein_language.pkl) actually exists? If yes, my second guess is that it might be related to the python version you use 3.8 and 3.9 respectively and I think we developed the code on 3.7).

We will look more into this and come back soon

from titan.

paulrbuckley avatar paulrbuckley commented on August 22, 2024

Thanks. Yes, i'm passing 'public/trained_model' as themodel path argument, and in that directory there is a file 'protein_language.pkl'

I'll try and see if I can get it working with python 3.7

from titan.

paulrbuckley avatar paulrbuckley commented on August 22, 2024

To update, running in 3.7 appears to have resolved the issue. Still running the code but it hasn't immediately failed.

from titan.

Lihua1990 avatar Lihua1990 commented on August 22, 2024

Thanks for the reply. I have checked that the .pkl file is there. I will check later if this is the problem with the python version.

from titan.

Lihua1990 avatar Lihua1990 commented on August 22, 2024

after downgrading python to 3.7, new error occurred 'No file exists' for 'best_ROC-AUC_bimodal_mca.pt', checked the directory inside the trained_model/weights/ one .pt file exists and I just renamed it. Now it is running, no error so far...

Thank you!

from titan.

jannisborn avatar jannisborn commented on August 22, 2024

Hi,

I have slightly updated the workflow of the semifrozen_finetuning.py script to fix all your issues. Only minor changes were needed in the TITAN codebase itself

Original issue:

  • I released a new pytoda version which is the data handling package of TITAN. See release details for v1.0.1 here and v1.0.2 here. The reason why you observed the TypeError when trying to restore the language object with dill is because we originally used python 3.7 to dump those objects. This is a known issue in dill and unrelated to the native pytoda code. There is currently an open PR in dill on this: uqfoundation/dill#406

Followup issue:

  • I renamed the weights file from done_training_bimodal_bimca.pt to best_ROC-AUC_bimodal_mca.pt to avoid the last error @Lihua1990. Glad you fixed it yourself, but if you were to re-download the data from Box, it should work out of the Box (pun intended!) now

Housekeeping:

  • While doing this, I also fixed the argument name ordering/layout in the TITAN README
  • python version compatibility: I verified that the environment setup and the execution of the semifrozen_finetuning.py now runs smoothly with python 3.6, 3.7, 3.8 and 3.9

from titan.

Related Issues (14)

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.