Code Monkey home page Code Monkey logo

manuscript2024-double_perovskite_gemnet's Introduction

Gemnet-OC_for_double_provskite

Installation

Guide

  • Use the data_preprocessing.py to relax your structures with Gemnet-OC2022-IS2RE. The following line in data_preprocessing.py can be changed to change your data and the model.
data_list = 'Enter_your_data_list' : enter your data list for relaxation (['name1', 'name2',...] # initial structure)
checkpoint = 'Enter_your_checkpoint_for_relaxation.pt'
  • Run the run_OCP.py to obtain binding energy with the transferred model. This code will make lmdb data from the relaxed structure and predict binding energy. The following lines can be changed to edit the data set and model.
data_list = 'data.pkl' : enter your dataset

with open(data_list, 'rb') as f:
    Data = pickle.load(f)
    
print('create LMDB database')
print('create data set')

db = lmdb.open(
    "data/test_set.lmdb",
    #map_size=10e1,
    subdir=False,
    meminit=False,
    map_async=True,
    map_size = (10**9) # 10 gb
)
  • Set checkpoint
checkpoint_path = 'enter_your_checkpoint' # checkpoitn file name
pretrained_trainer.load_checkpoint(checkpoint_path=checkpoint_path)
predictions = pretrained_trainer.predict(pretrained_trainer.test_loader, results_file="predict_result", disable_tqdm=False)

manuscript2024-double_perovskite_gemnet's People

Contributors

lld21301 avatar googhgoo avatar

Watchers

 avatar

Forkers

seoinback

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.