resnet

所属分类:数值算法/人工智能
开发工具:Python
文件大小:116KB
下载次数:50
上传日期:2017-11-08 19:55:02
上 传 者大幕
说明:  使用 TensorFlow 实现 resNet, 也就是残差网络,为官方demo, 分别用 cifar 数据集和 ImageNet 数据集进行测试。
(Using TensorFlow to achieve resNet, that is, the residual network, for official demo, respectively, using cifar data sets and ImageNet data sets for testing.)

文件列表:
resnet (0, 2017-10-29)
resnet\.idea (0, 2017-10-30)
resnet\.idea\inspectionProfiles (0, 2017-10-29)
resnet\.idea\inspectionProfiles\Project_Default.xml (1082, 2017-10-29)
resnet\.idea\misc.xml (349, 2017-10-29)
resnet\.idea\modules.xml (264, 2017-10-29)
resnet\.idea\resnet.iml (455, 2017-10-29)
resnet\.idea\workspace.xml (41308, 2017-10-30)
resnet\cifar10_download_and_extract.py (2167, 2017-10-29)
resnet\cifar10_main.py (10531, 2017-10-29)
resnet\cifar10_test.py (3620, 2017-10-29)
resnet\imagenet_main.py (9567, 2017-10-29)
resnet\imagenet_test.py (6905, 2017-10-29)
resnet\resnet_model.py (14941, 2017-10-29)
resnet\tmp (0, 2017-10-29)
resnet\tmp\cifar10_data (0, 2017-11-08)
resnet\tmp\cifar10_model (0, 2017-11-08)
resnet\tmp\cifar10_model\eval (0, 2017-10-29)
resnet\tmp\cifar10_model\eval\events.out.tfevents.1509274975.DESKTOP-IQD9MBJ (952972, 2017-10-29)
resnet\tmp\resnet_model (0, 2017-11-08)
resnet\vgg_preprocessing.py (12903, 2017-10-29)
resnet\__init__.py (0, 2017-10-29)
resnet\__pycache__ (0, 2017-10-29)
resnet\__pycache__\resnet_model.cpython-36.pyc (10416, 2017-10-29)
resnet\__pycache__\vgg_preprocessing.cpython-36.pyc (10677, 2017-10-29)

# ResNet in TensorFlow Deep residual networks, or ResNets for short, provided the breakthrough idea of identity mappings in order to enable training of very deep convolutional neural networks. This folder contains an implementation of ResNet for the ImageNet dataset written in TensorFlow. See the following papers for more background: [Deep Residual Learning for Image Recognition](https://arxiv.org/pdf/1512.03385.pdf) by Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun, Dec 2015. [Identity Mappings in Deep Residual Networks](https://arxiv.org/pdf/1603.05027.pdf) by Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun, Jul 2016. Please proceed according to which dataset you would like to train/evaluate on: ## CIFAR-10 ### Setup You simply need to have the latest version of TensorFlow installed. First download and extract the CIFAR-10 data from Alex's website, specifying the location with the `--data_dir` flag. Run the following: ``` python cifar10_download_and_extract.py ``` Then to train the model, run the following: ``` python cifar10_main.py ``` Use `--data_dir` to specify the location of the CIFAR-10 data used in the previous step. There are more flag options as described in `cifar10_main.py`. ## ImageNet ### Setup To begin, you will need to download the ImageNet dataset and convert it to TFRecord format. Follow along with the [Inception guide](https://github.com/tensorflow/models/tree/master/research/inception#getting-started) in order to prepare the dataset. Once your dataset is ready, you can begin training the model as follows: ``` python imagenet_main.py --data_dir=/path/to/imagenet ``` The model will begin training and will automatically evaluate itself on the validation data roughly once per epoch. Note that there are a number of other options you can specify, including `--model_dir` to choose where to store the model and `--resnet_size` to choose the model size (options include ResNet-18 through ResNet-200). See [`imagenet_main.py`](imagenet_main.py) for the full list of options.

近期下载者

相关文件


收藏者