Giter Club home page Giter Club logo

physnet's Introduction

PhysNet

Tensorflow implementation of PhysNet (see https://arxiv.org/abs/1902.08408) for details

Requirements

To run this software, you need:

  • python3 (tested with version 3.6.3)
  • TensorFlow (tested with version 1.10.1)

How to use

Edit the config.txt file to specify hyperparameters, dataset location, training/validation set size etc. (see "train.py" for a list of all options)

Then, simply run

python3 train.py 

in a terminal to start training.

The included "config.txt" assumes that the dataset "sn2_reactions.npz" is present. It can be downloaded from: https://zenodo.org/record/2605341. In order to use a different dataset, it needs to be formatted in the same way as this example ("sn2_reactions.npz"). Please refer to the README file of the dataset (available from https://zenodo.org/record/2605341) for details.

How to cite

If you find this software useful, please cite:

Unke, O. T. and Meuwly, M. "PhysNet: A Neural Network for Predicting Energies, Forces, Dipole Moments and Partial Charges" arxiv:1902.08408 (2019).

physnet's People

Contributors

meuwlygroup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

physnet's Issues

Trained models .ckpt

Would it be possible to obtain an already trained .cpkt file with the model used in this project's paper?

How to improve the speed of ASE-MD simulation based on trained PhysNet model?

Hello, everyone! I have trained one PhysNet model on the solvated_protein_fragments.npz data. Now I want to conduct the MD simulations based on the model through ASE environment. The simulation system I used has 1681 atoms and satisfies PBC conditions. I set the lr_cut 8 Angstrom in the NNCalculator.py.

I found the ASE-MD simulation was running slowly. I submit the task on computation cluster and used one gpu and five cpu cores. However, the simulation of 5000 steps consumes about 6 hours. In the running process, the volatile GPU-Util almost keeps zero, but the memory usage is large.
image

I think the low speed arises from the ase.neighbor_list process, but I don't know how improve the situation effectively.

Looking forward to your help!

[help wanted] cannot run the train.py successfully

I hope you can help solve the problem. I use anaconda for the creation of a virtual environment and run train.py in spyder with python 3.11. When I run the train.py, there shows up the error. The dataset used by this code is sn2_reactions.npz, which is got from: https://zenodo.org/record/2605341. Other files and parameters are not verified.

THe error report:

File D:\programs\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)

File d:\programs\qml\copies\physnet-master\physnet-master\train.py:122
Eshift=data_provider.EperA_mean,

File D:\programs\qml\copies\PhysNet-master\PhysNet-master\training\DataProvider.py:106 in EperA_mean
self._compute_E_statistics()

File D:\programs\qml\copies\PhysNet-master\PhysNet-master\training\DataProvider.py:95 in _compute_E_statistics
tmp = self.get_data(self.idx_train[i])

File D:\programs\qml\copies\PhysNet-master\PhysNet-master\training\DataProvider.py:196 in get_data
return self.data[idx]

File D:\programs\qml\copies\PhysNet-master\PhysNet-master\training\DataContainer.py:147 in getitem
for k, i in enumerate(idx):

TypeError: 'numpy.int32' object is not iterable

Desktop
OS: [Windows11]
Anaconda version:conda 23.7.3
Python Version: [3.11.4]
Package Version: [tensorflow 2.13.0], [numpy 1.24.3]

Unit of MAE

Hi,

What is the unit of the MAE value (best_emae) that is printed in train.py line 458? Is it in eV or kcal/mol? If it is kcal/mol, can you please tell me in which part of the code did you do the unit conversion?

Thank you,

qm9.npz

I saw that this was ran with qm9, do you know how they were able to get a qm9.npz file that works with the model?

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.