Giter VIP home page Giter VIP logo

cnntissuesr's Introduction

CNNTissueSR

Super Resolution of Tissue Microscopic Images

Project presentation is attached as Convolutional Neuron Network Based Microscopic Image Super-Resolution.pptx

To run/test this algorithm, please download the repository and unzip all the zip files to the same directory. Make sure the file names are unchanged. Then, line-by-line/source the Main.R file from this repository. For the first time this program is running on some computers, few packages may be installed automatically. In this process, R may reboot several times by itself. If Nvidia GPU can be ultilized for tensor calculation, please change Setup.R file first block

if(!require("keras")){
  install.packages("keras")
  library(keras)
  try(install_keras(),
      silent = TRUE)
}

to

if(!require("keras")){
  install.packages("keras")
  library(keras)
  try(install_keras(tensorflow = "GPU"),
      silent = TRUE)
}

The convolutional neuron network model this algorithm is using is called "Hour Glass Model"

The lost function this network is ultilizing is called "Convoluted Feature Map Loss"

In Main.R :

  hidden_layer_count = 5        #Can be 5 or 1
  generation = 100              #Epoch
  batchsize = 10                #Dependent on the RAM size; the larger the faster
  validation = 0.2              #Portion of the data to validate (Validation Rate)
  train_size = 200              #Need to be equal or smaller than the data set size
  defogging_factor = 0          #Zeros returns original picture
  use_plotly = FALSE            #Training history virtualization using plotly
  use_ggplot = FALSE            #Training history virtualization using ggplot
  save_model = TRUE             #Whether model will be saved

In the code above few parameters of this algorrithm are defined including hidden layer count, epoch, batch size, training size and linear filter intensity. Please feel free to change the parameters while using.

In this algorithm, linear filter is completely optional. Whether the presence of linear filter will increase the quality of the images is still worth debating.

Data virtualization, in this case, is using either/both plotly and ggplot2. For plotly, a pre-registered account deticated for this project is used in the code. Please do not use this account for personal use. Were there any suggestions given to the utilization of the plotly account, please contact the author.

Author Email: [email protected]
Open to questions and suggestions!

This project is completed in University of Tokyo, Department of Chemistry. Million thanks to fellow scholars for the tremendous help.

cnntissuesr's People

Contributors

broccolito avatar

Watchers

 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.