Giter Site home page Giter Site logo

menjarleev / eecs545 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 158.31 MB

eecs545 project

Python 84.41% PowerShell 0.01% MATLAB 0.18% Jupyter Notebook 0.62% C 0.30% Fortran 0.02% Shell 0.01% JavaScript 14.39% HTML 0.01% CSS 0.01% C++ 0.02% Smarty 0.01% Makefile 0.01% TeX 0.03%

eecs545's Introduction

PhotometricGAN

create image dataset from .mat dataset

python ./data/mat2np.py --dataset_root YOUR_DATASET_ROOT --mat_dir MAT_DIR --img_dir IMG_DIR

This script creates a grayscale jpg image dataset on YOUR_DATASET_ROOT/IMG_DIR using mat dataset YOUR_DATASET_ROOT/MAT_DIR. For example, your dataset is stored in /home/ubuntu/data/BottleData, then YOUR_DATASET_ROOT=/home/ubuntu/data, MAT_DIR=BottleData, and the new generated dataset is stored in /home/ubuntu/data/IMG_DIR

  • You should have Training_Data_128, Test_Data_128, Validation_Data_128stored in MAT_DIR, namely BottleData.
  • note: please remove redundant .mat files in folder YOUR_DATASET_ROOT/MAT_DIR/PHASE/. For example, you need to manually remove files in /home/ubuntu/data/BottleData/Training_Data_128/*.mat by your own. In this way, only /home/ubuntu/data/BottleData/Training_Data_128/Bottle_95/ contains input.mat and output_\d+ files.

train the model

main.py --test --test_step 50 --dataset_root YOUR_DATASET_ROOT --num_resblock 12 
--train --max_step 500 --validation_interval 100 --log_interval 100 
--lr 0.00001 --validation --optim_name Adam --save_result --batch_size 8 --batch_size_eval 8

Args can be found in option/option.py

configuration

  • TODO add configuration files

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.