Skip to main content

atomvision

Project description

name alt text codecov PyPI version GitHub tag (latest by date) GitHub code size in bytes GitHub commit activity Downloads

Atomvision

Table of Contents

Introduction

Atomvision is a deep learning framework for atomistic image data

Installation

First create a conda environment: Install miniconda environment from https://conda.io/miniconda.html Based on your system requirements, you'll get a file something like 'Miniconda3-latest-XYZ'.

Now,

bash Miniconda3-latest-Linux-x86_64.sh (for linux)
bash Miniconda3-latest-MacOSX-x86_64.sh (for Mac)

Download 32/64 bit python 3.6 miniconda exe and install (for windows) Now, let's make a conda environment, say "version", choose other name as you like::

conda create --name vision python=3.8
source activate vision

Now, let's install the package:

Method 1 (using setup.py):

git clone https://github.com/usnistgov/atomvision.git
cd atomvision
python setup.py develop

Method 2 (using pypi):

As an alternate method, AtomVision can also be installed using pip command as follows:

pip install atomvision

Examples

2D-Bravais lattice classification example

This example shows how to classify 2D-lattice (5 Bravais classes) for 2D-materials STM/STEM images.

We will use imagessample_data folder. It was generated with generate_stem.py script. There are two folders train_folder, test_folder with sub-folders 0,1,2,3,4,... for individual classes and they contain images for these classes.

train_classifier_cnn.py --model densenet --train_folder atomvision/sample_data/test_folder --test_folder atomvision/sample_data/test_folder --epochs 5 --batch_size 16

Generating a t-SNE plot

train_tsne.py --data_dir atomvision/sample_data/test_folder

Generative Adversarial Network

train_gan.py --dataset_path atomvision/sample_data/test_folder/0 --epochs 2

Autoencoder

train_autoencoder.py --train_folder atomvision/sample_data/test_folder --test_folder atomvision/sample_data/test_folder --epochs 10

Reference

  1. The joint automated repository for various integrated simulations (JARVIS) for data-driven materials design

  2. Computational scanning tunneling microscope image database

Please see detailed publications list here.

How to contribute

For detailed instructions, please see Contribution instructions

Correspondence

Please report bugs as Github issues (https://github.com/usnistgov/atomvision/issues) or email to kamal.choudhary@nist.gov.

Funding support

NIST-MGI (https://www.nist.gov/mgi).

Code of conduct

Please see Code of conduct

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atomvision-2022.10.23.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

atomvision-2022.10.23-py2.py3-none-any.whl (80.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file atomvision-2022.10.23.tar.gz.

File metadata

  • Download URL: atomvision-2022.10.23.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for atomvision-2022.10.23.tar.gz
Algorithm Hash digest
SHA256 2a46db8d37ecf5774be3dd9cbbcdcd85ad23c6926d93243e53d57107eb48edce
MD5 190104386696d60282c08d3c290b091f
BLAKE2b-256 277363c8bf9c174d911665d4da87611b44c95ea32d87f7816f76e87207414c53

See more details on using hashes here.

Provenance

File details

Details for the file atomvision-2022.10.23-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for atomvision-2022.10.23-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6cca85d35a723565654d231050f4ee9114808c3e0b44c2efb5e36708a8778ae9
MD5 8ac60d8f072e3256879c1493664a8421
BLAKE2b-256 785e76f7859436e13c7f2563b3e572cba3688b42a7fec971fe7ac93243279714

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page