Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[example] minor fix for alexnet #147

Merged
merged 1 commit into from
Sep 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions example/imagenet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ TODO

## Results

Machine: Dual Xeon E5-2680 2.8GHz, Dual GTX 980, Ubuntu 14.0, GCC 4.8, MKL, CUDA
Machine: Dual Xeon E5-2680 2.8GHz, GTX 980, Ubuntu 14.0, GCC 4.8, MKL, CUDA
7, CUDNN v3

| | val accuracy | 1 x GTX 980 | 2 x GTX 980 |
| --- | ---: | ---: | ---: | ---: |
| `alexnet.py` | ? | ? | 400 img/sec |
| | val accuracy | 1 x GTX 980 | 2 x GTX 980 | 4 x GTX 980 |
| --- | ---: | ---: | ---: | ---: | ---: |
| `alexnet.py` | ? | ? | 1020 img/sec | |
5 changes: 3 additions & 2 deletions example/imagenet/alexnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@


## data
train, val = ilsvrc12_iterator(batch_size=256, input_shape=(3,224,224))
batch_size = 256
train, val = ilsvrc12_iterator(batch_size=batch_size, input_shape=(3,224,224))

## train
num_gpus = 2
Expand All @@ -58,4 +59,4 @@
wd = 0.00001)
logging.basicConfig(level = logging.DEBUG)
model.fit(X = train, eval_data = val,
epoch_end_callback = mx.callback.Speedometer(100))
epoch_end_callback = mx.callback.Speedometer(batch_size=batch_size))