Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Start from Interpret Neural Networks by Identifying Critical Data Routing Paths

NotificationsYou must be signed in to change notification settings

lidongyue12138/Critical-Path-Pruning

Repository files navigation

How to Run Our Code

We implement our pruning algorithm based on theTensorFlow 1.4.1 withCUDA 8.0. We useCIFAR-100 dataset andVGG-16 network for all the experiments. Codes are available atGithub Link

Prerequisite

To run our code, you have to download:

And you need to install following python pachages:

  • pickle
  • json
  • keras
  • numpy
  • tensorflow
  • sklearn

We suggest you to installAnaconda for convenience

Run the Code

Therre are several steps to run the code:

  1. run.py: this file generate class encodes. You should change classes or set loops to run all classes in this file
  2. trim_and_test.py: this file trim the model and test the accuracy with pruned model which has not been fine tuned yet. Changetarget_class_id for models of different classes
  3. run_finetune.py: this file fine tune the pruned model and test the accuracy with fine tuned models. You should changetarget_class_id for models of different classes

Notice: we use GPU for training, so you should designate certain GPU for training in these files.

About

Start from Interpret Neural Networks by Identifying Critical Data Routing Paths

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp