Giter Site home page Giter Site logo

yelin-deng / microstructure-gan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from safi842/microstructure-gan

0.0 0.0 0.0 1.59 MB

GAN for synthesizing microstructures based on processing conditions.

License: MIT License

Python 17.69% Jupyter Notebook 82.31%

microstructure-gan's Introduction

Microstructure-GAN โ€” Pytorch Implementation

Streamlit App

Overview

Establishing process-structure linkages using Generative Adversarial Networks

Mohammad Safiuddin, Ch Likith Reddy, Ganesh Vasantada, CHJNS Harsha, Dr. Srinu Gangolu

Paper: https://arxiv.org/abs/2107.09402

Abstract: The microstructure of a material strongly influences its mechanical properties and the microstructure itself is influenced by the processing conditions. Thus, establishing a Process-Structure-Property relationship is a crucial task in material design and is of interest in many engineering applications. In this work, the processing-structure relationship is modelled as deep learning based conditional image synthesis problem. This approach is devoid of feature engineering, needs little domain awareness, and can be applied to a wide variety of material systems. We develop a GAN (Generative Adversarial Network) to synthesize microstructures based on given processing conditions. Results show that our GAN model can produce high-fidelity multiphase microstructures which have a good correlation with the given processing conditions.

Results:

File Overview

The following files are included in this package:

  • omni-loss-biggan.ipynb: an Ipython notebook that contains the code used to train the model.
  • new_metadata.xlsx: an Excel workbook that holds the training image metadata.
  • .\app: a directory that contains the source code for the app. Further instructions on the app can be found below.

Application

Streamlit App
If you want to run the app locally, follow the instructions below

To install the app, unzip the .\Microstructure_GAN folder. Next, navigate to the .\Microstructure_GAN\app directory in a terminal and run the following command to install the necessary packages:

pip install requirements.txt

Once the packages have been installed, run the following command to start the web app:

streamlit run gan_app.py

Recreating Results:

Generated micrographs can be downloaded by clicking the "Download Micrograph" button. The file name of the saved image contains the processing conditions and seed value, for example: 800-85H-Quench-864.png. To recreate the image, the latent vector can be generated using the seed as follows.

seed = 864
rng = np.random.RandomState(seed)
latent_vector = rng.normal(0, 1, (1, 384))

microstructure-gan's People

Contributors

safi842 avatar

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.