Coder Social home page Coder Social logo

eurosat-experiment's Introduction

294-082-final-project

Evaluation the Experimental Design of Land Cover Classification Model

Quick start

1. Setup Envionment

  1. Create a new conda environment and activate it
    conda create --name cs294
    conda activate cs294
    conda install pip
    
  2. Install requirement packages
    pip install -r requirements.txt
    
    You might want to install the cuda version of pytorch again using the cmd here if you want to use gpu for pytorch

2. Run 1 GPU baseline

  1. run on your own laptop

    python -m model_baseline.resnet-eurosat
    
  2. run on bridge2

    # login in to interactive node
    salloc -N 1 -n 1 -p GPU-shared --gres=gpu:1 -q interactive -t 01:00:00
    
    # load pytorch environment
    singularity shell  /ocean/containers/ngc/pytorch/pytorch_latest.sif
    
    # run code
    python -m model_baseline.resnet-eurosat
    
  3. run on bridges-2 job

    change fc_nodes in bridge_job.sh then run

    sbatch bridge_job.sh
    

3. Total workflow

  1. Download the dataset and try start resnet base training

    python -m model_baseline.resnet-eurosat
    
  2. Generate csv data from RGB photo and resnet output

    python -m scripts.image-to-csv
    python -m scripts.resnet-to-csv
    
  3. run brainome

    python -m brainome login
    python -m brainome -vv -target class -o resnet-nn.py -f NN  ./data/resnet-output.csv
    
  4. Training model with different hiden layer nodes

    for i in {1..15}
    do
        python -m model_baseline.mlp-eurosat --fc_nodes $i
    done
  5. run notebook under ./scripts/data_mec.ipynb to get dataset mec, Capacity Progression and plots

4. Pretrained Model and Logs

eurosat-experiment's People

Contributors

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