Skip to content
项目

关于

Pytorch Implementation of AlexNet

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Pytorch implementation of AlexNet

  • Now compatible with pytorch==0.4.0

This is an implementaiton of AlexNet, as introduced in the paper "ImageNet Classification with Deep Convolutional Neural Networks" by Alex Krizhevsky et al. (original paper)

This was the first very successful CNN for image classification that led to breakout of deep learning 'hype', as well as the first successful example of utilizing dropout layers.

Prerequisites

  • python >= 3.5
  • pytorch==0.4.0

You can install required packages by:

pip3 install -r requirements.txt

DataSet

This implemenation uses the ILSVRC 2012 dataset, also known as the 'ImageNet 2012 dataset'. The data size is dreadfully large (138G!), but this amount of large-sized dataset is required for successful training of AlexNet. Testing with Tiny ImageNet or MNIST could not be done due to their smaller feature sizes (images do not fit the input size 227 x 227).

After downloading the dataset file (i.e., ILSVRC2012_img_train.tar), use extract_imagenet.sh to extract the entire dataset.

extract_imagenet.sh

ImageNet 2012's dataset structure is already arranged as /root/[class]/[img_id].jpeg, so using torchvision.datasets.ImageFolder is convenient.

Training

python3 model.py

Specify the data path by modifying the constant TRAIN_IMG_DIR at the beginning of the script. Also tune model parameters by modifying constants at the beginning of the script.

探索相关项目

加载中…