Giter VIP home page Giter VIP logo

evaluate-project's Introduction

This project is used to compress and evaluate cnn models. Compression part is from https://github.com/NervanaSystems/distiller/.

Prerequisite

After you have a python envrioment (>=3.7) and pip, run the following command.

$ cd distiller

$ pip3 install -e .

Run

Run the test

$ cd distiller/tests

$ pytest

Run the training(eg. resnet44 training with no compression, the command can find in command.txt)

$ cd examples/classifier_compression

$ python compress_classifier.py -a resnet44_cifar --data ../../data.cifar --lr 0.005 -p 50 --epochs 100 --gpus 0 --out-dir ../../outputsdata/ --batch-size 64 --workers 3 --confusion

Run the evaluation

$ cd examples/classifier_compression

$ python compress_classifier.py -a=resnet44_cifar --data ../../data.cifar --workers 3 --batch-size 64 --evaluate --confusion --adv 1 --resume-from ../../outputsdata/resnet44/checkpoint.pth.tar --out-dir ../../outputsdata/eval/

compression-result.xlsx cotains the result of expriments.

evaluate-project's People

Contributors

nzmora avatar guyjacob avatar flamexmt avatar levzlotnik avatar barrh avatar galnov avatar haim-barad avatar 103yiran avatar rotx-maxim avatar chenys1995 avatar trougnouf avatar bowenwu1 avatar gxllii avatar joyfyan avatar hunterkun avatar rvbens avatar blairhan avatar emily0219 avatar taras-sereda avatar thomasjpfan avatar eduidl avatar ynahshan avatar innernull avatar tacker-oh avatar

Stargazers

 avatar

Watchers

James Cloos avatar Shiqing Ma avatar  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.