GithubHelp home page GithubHelp logo

jess's Introduction

JESS

Joint Energy-Based Semantic Segmentation

segmantation image

Installation

$ git clone https://github.com/stefanherdy/JESS.git

Usage

- Run train_jess.py with "python train_jess.py".
    You can specify the following parameters:
    --batch_size, type=int, default=8, help="Batch Size"
    --learnrate, type=int, default=0.0001, help='learn rate of optimizer'
    --p_x_weight, type=int, default=0.01, help='weight of energy based optimization'
    --optimizer, choices=['sgd', 'adam'], default='adam'
    --eval_every, type=int, default=1, help="Epochs between evaluation"
    --print_every, type=int, default=1, help="Epochs between print"
    --ckpt_every, type=int, default=20, help="Epochs between checkpoint save"
    --energy, choices=['True', 'False'], default='True', help="Set p(x) optimization on(True)/off(False)"
    --num_classes, type=int, default=8, help="Number of classes"
    --num_tests, type=int, default=10, help="Number of tests"
    --test, choices=['norm', 'jess'], default='norm', help="Normal test or Joint Energy-Based Sematic Segmentation"
    --set, choices=['usa', 'john_handy', 'john_cam'], default='usa', help="Dataset"

    Example usage:
    "python train_jess.py --test norm --set usa --learnrate 0.00001 --batch_size 16

    
- To evaluate the model run evaluate_model.py with "python evaluate_model.py".
    You can specify the following parameters:
    --test, choices=['norm', 'jess'], default='norm', help="Normal test or Joint Energy-Based Sematic Segmentation"
    --set, choices=['usa', 'john_handy', 'john_cam'], default='norm', help="Dataset"
    --num_classes, type=int, default=8, help="Number of classes"
    --batch_size, type=int, default=8, help="Batch Size"

    Example usage:
    "python evaluate_model.py --test norm --set usa 

    Make sure you performed the training before, so that the models can be loaded for evaluation.

    
- You can run neighbors.py to run the neighbor analysis with "python neighbors.py".
    You can specify the following parameters:
    --test, choices=['norm', 'jess'], default='norm', help="Normal test or Joint Energy-Based Sematic Segmentation"
    --set, choices=['usa', 'john_handy', 'john_cam'], default='norm', help="Dataset"

    Example usage:
    "python neighbors.py --test norm --set usa 

Šī¸ 2023 Stefan Herdy

jess's People

Contributors

stefanherdy avatar

Stargazers

 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.