Giter Site home page Giter Site logo

densae's Introduction

Code style: black

DenSaE (dense and sparse autoencoder)

Trained Models

Trained models are stored in results/trained_models.

PATH

For any scripts to run, make sure you are in src directory.

Configuration

Create a configuration function in conf.py containing a dictionary of hyperparameters for your experiment.

@config_ingredient.named_config
def exp1():
    hyp = {
        "experiment_name": "noise15_densae_1A_63B_hyp",
        "network": "CSCNetTiedLS",
        "noiseSTD": 15,
        "dictionary_dim": 7,
        "stride": 5,
        "strideA": 5,
        "strideB": 5,
        "split_stride": 5,
        "num_conv_A": 1,
        "num_conv_B": 63,
        "L": 10,
        "num_iters": 15,
        "twosided": True,
        "batch_size": 1,
        "num_epochs": 250,
        "normalize": False,
        "lr": 1e-4,
        "lr_decay": 0.80,
        "lr_step": 50,
        "info_period": 10000,
        "model_period": 10000,
        "loss_period": 10000,
        "crop_dim": (128, 128),
        "lam": 0.085,
        "rho": 1e10,
        "weight_decay": 0,
        "supervised": True,
        "shuffle": True,
        "denoising": True,
        "loss": "l2",
        "train_path": "../data/CBSD432/",
        "test_path": "../data/BSD68/",
    }

Training

python train.py with cfg.exp1

Results

When training is done, the results are saved in results/{experiment_name}/{random_date}.

random_date is a datetime string generated at the begining of the training.

Prediction

Run predict.py. Make sure to specify the parameters from line 37 - 42.

densae's People

Contributors

btolooshams avatar

Stargazers

 avatar  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.