GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - deepakn94/tensorflow-benchmarks: Benchmark code

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

146 Commits
146 Commits

Folders and files

NameName
Last commit message
Last commit date
logs
logs
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
alexnet_model.py
alexnet_model.py
 
 
backup_checkpoints.py
backup_checkpoints.py
 
 
benchmark_storage.py
benchmark_storage.py
 
 
cbuild_benchmark_storage.py
cbuild_benchmark_storage.py
 
 
cnn_util.py
cnn_util.py
 
 
convnet_builder.py
convnet_builder.py
 
 
datasets.py
datasets.py
 
 
densenet_model.py
densenet_model.py
 
 
eval_checkpoints.py
eval_checkpoints.py
 
 
googlenet_model.py
googlenet_model.py
 
 
inception_model.py
inception_model.py
 
 
lenet_model.py
lenet_model.py
 
 
model.py
model.py
 
 
model_config.py
model_config.py
 
 
overfeat_model.py
overfeat_model.py
 
 
preprocessing.py
preprocessing.py
 
 
resnet_model.py
resnet_model.py
 
 
sweep_parameters.py
sweep_parameters.py
 
 
sweep_parameters_distributed.py
sweep_parameters_distributed.py
 
 
tf_cnn_benchmarks.py
tf_cnn_benchmarks.py
 
 
time_inference.py
time_inference.py
 
 
trivial_model.py
trivial_model.py
 
 
variable_mgr.py
variable_mgr.py
 
 
vgg_model.py
vgg_model.py
 
 

Repository files navigation

ResNets for ImageNet on TensorFlow

To train a ResNet, run,

python3 tf_cnn_benchmarks.py --model=resnet50 --data_dir=../../../../data/imagenet/
                             --checkpoint_dir=/lfs/1/deepak/checkpoints/resnet50_lr=0.05
                             --num_batches=1800000 --subset=train --learning_rate=0.05
                             --learning_rate_decay_factor=0.1 --num_epochs_per_decay=30
                             --optimizer=momentum --weight_decay=0.0001

This command produces model checkpoints written after every epoch. To evaluate each of these checkpoints, run,

python3 eval_checkpoints.py -i /lfs/1/deepak/checkpoints/resnet50_lr=0.05/
                            -c "python tf_cnn_benchmarks.py --model=resnet50 --eval --data_dir=/lfs/1/deepak/data/imagenet/ --eval_subset=validation --num_batches=100 --batch_size=500"

Other example command lines are available in the scripts/ directory (for example, training and evaluating ResNet152 on 4 GPUs).

Make sure to first follow the instructions in the TensorFlow models repository to get necessary data, etc.

About

Benchmark code

Resources

Readme
License
Activity

Stars

4 stars

Watchers

4 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.