Giter Site home page Giter Site logo

chromo-scheduler's Introduction

chromo-scheduler

Operations like listing lots of files, moving files from CIFS, AI scoring and sorting on CIFS are slow. So they are seperated from realtime file watchdog.
Lister, mover, scorer and sorter can be used seperately to create a fully async pipeline. Or we could combine mover, scorer and sorter into a single worker for simplicity.

Initialize

  1. initialize database
python create_sql_tables.py
  1. create scheduler paths
sudo mkdir /media/scheduler
sudo chown voyager.voyager /media/scheduler
mkdir ./tmp
  1. update consts.py
DEBUG = True
TRACK = False

SORT_SIMULATION = True  # VERY IMPORTANT! SET TO FALSE AFTER DEBUGGING!

# global config
src_path = '/media/msd'
export_path = '/media/cs/test'
dest_path = '/media/scheduler'
tmp_path = './tmp'
backup_path = './backup'
  1. update core_config.py
activate_core_name = 'resnet50'

CORE_ARGS = {
    'resnet50': {
        'MODEL_PATH': './data/merge-03_001_cc.pth', # set to your model path
        'DEVICE_NAME': 'cuda:0',
        'MODEL_TYPE': 'ori_resnet50',
        'NUM_CLASSES': 2,
        'PREPROCESS': 'autolevel',
        'BATCH_SIZE': 8
    }
}
  1. start pipeline
conda activate chromo-scheduler
nohup python -u worker.py > worker.log 2>&1 &

Tests

  • pipeline_test.py - tests for lister, ls_scheduler and other wokers, just for debugging, do NOT run this test after deployment
  • gpu_perf_test.py - gpu performance test

Please run tests from root path of chromo-scheduler project:

cd chromo-scheduler
python test/gpu_perf_test.py

chromo-scheduler's People

Contributors

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