← 开源
kratzert

finetune_alexnet_with_tensorflow

Code for finetuning AlexNet in TensorFlow >= 1.2rc0

TutorialsTool-specific tutorialsJupyter Notebook
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
776
Star
399
Fork
+-1
本周
2
贡献者
创建于 2017-02-23 · 更新于 2026-10-09 · 今日第 13944 名
主要开发者
kratzertwogong

kratzert/finetune_alexnet_with_tensorflow 排名第 13,944,有 776 个星标。

同类别比较

kratzert/finetune_alexnet_with_tensorflow 排名第 13,944,此处有 8 个同类条目;revfactory/claude-code-mastering 排名第 13,962。

同类别比较
名称排名指标
kevin369ml/My-TensorFlow-tutorials13,905
语言:
Python
星标数:
779
分叉数:
507
简介:
This repo contains all of my TensorFlow tutorials
rasbt/stat479-machine-learning-fs1913,908
语言:
Jupyter Notebook
星标数:
779
分叉数:
253
简介:
Course material for STAT 479: Machine Learning (FS 2019) taught by Sebastian Raschka at University Wisconsin-Madison
VivekPa/IntroNeuralNetworks13,913
语言:
Python
星标数:
778
分叉数:
208
简介:
Introducing neural networks to predict stock prices
gtbook/robotics13,923
语言:
Jupyter Notebook
星标数:
778
分叉数:
110
简介:
Notebook-based book "Introduction to Robotics and Perception" by Frank Dellaert and Seth Hutchinson
revfactory/claude-code-mastering13,962
语言:
JavaScript
星标数:
774
分叉数:
124
aws/studio-lab-examples13,968
语言:
Jupyter Notebook
星标数:
773
分叉数:
227
简介:
Example notebooks for working with SageMaker Studio Lab. Sign up for an account at the link below!
amitshekhariitbhu/Android-TensorFlow-Lite-Example13,982
语言:
Java
星标数:
772
分叉数:
231
简介:
Android TensorFlow Lite Machine Learning Example
openai/openai-testing-agent-demo13,987
语言:
TypeScript
星标数:
772
分叉数:
118
简介:
Demo of a UI testing agent using the OpenAI CUA model and the Responses API.
关键参数与规格
关键参数与规格
参数值
语言Jupyter Notebook
类别Tutorials
子类别Tool-specific tutorials
星标数776
分叉数399
贡献者2
创建日期2017-02-23
更新日期2026-10-09
1 天星标数0
7 天星标数-1
排名13,944
上次排名13,826
排名变化-118
7 天星标排名17,605
上次 7 天星标排名17,556
7 天星标排名变化-49
总星标排名13,685
上次总星标排名13,665
总星标排名变化-20
README 摘录

Finetune AlexNet with Tensorflow **Update 15. 2016** I revised the entire code base to work with the new input pipeline coming with TensorFlow >= version 1. You can find an explanation of the new input pipeline in a new blog post You can use this code as before for finetuning AlexNet on your own dataset, only the dependency of OpenCV isn't necessary anymore. The old code can be found in this past commit. This repository contains all the code needed to

finetune AlexNet on any arbitrary dataset. Beside the comments in the code itself, I also wrote an article which you can find here with further explanation. All you need are the pretrained weights, which you can find here or convert yourself from the caffe library using caffe-to-tensorflow. If you convert them on your own, take a look on the structure of the weights file (dict of dicts or dict of lists). **Note**: I won't write to much of

an explanation here, as I already wrote a long article about the entire code on my blog. 2rc0 Numpy TensorBoard support The code has TensorFlows summaries implemented so that you can follow the training progress in TensorBoard. : Contains a wrapper class for the new input pipeline. : List of the 1000 class names of ImageNet (copied from here). : Notebook to test the correct implementation of AlexNet and the pretrained weights on some images from the ImageNet database. : contains three example images

, needed for the notebook. Usage All you need to touch is the , although I strongly recommend to take a look at the entire code of this repository. In the script you will find a section of configuration settings you have to adapt on your problem. If you do not want to touch the code any further than necessary you have to provide two files to the script ( and ). Each of them list the complete path to your train/val images

together with the class number in the following structure. were the first column is the path and the second the class label. The other option is that you bring your own method of loading images and providing batches of images and labels, but then you have to adapt the code on a few lines.

常见问题

记录了多少星标和分叉?

kratzert/finetune_alexnet_with_tensorflow 有 776 个星标和 399 个分叉。

仓库排名是多少?

kratzert/finetune_alexnet_with_tensorflow 排名第 13,944。

记录的语言和类别是什么?

kratzert/finetune_alexnet_with_tensorflow 有 776 个星标,语言为 Jupyter Notebook,类别为 Tutorials。

哪个仓库排名最接近?

kratzert/finetune_alexnet_with_tensorflow 与 revfactory/claude-code-mastering 比较,后者排名第 13,962,有 774 个星标。

README

Finetune AlexNet with Tensorflow

Update 15.06.2016

I revised the entire code base to work with the new input pipeline coming with TensorFlow >= version 1.2rc0. You can find an explanation of the new input pipeline in a new blog post You can use this code as before for finetuning AlexNet on your own dataset, only the dependency of OpenCV isn't necessary anymore. The old code can be found in this past commit.

This repository contains all the code needed to finetune AlexNet on any arbitrary dataset. Beside the comments in the code itself, I also wrote an article which you can find here with further explanation.

All you need are the pretrained weights, which you can find here or convert yourself from the caffe library using caffe-to-tensorflow. If you convert them on your own, take a look on the structure of the .npy weights file (dict of dicts or dict of lists).

Note: I won't write to much of an explanation here, as I already wrote a long article about the entire code on my blog.

Requirements

  • Python 3
  • TensorFlow >= 1.2rc0
  • Numpy

TensorBoard support

The code has TensorFlows summaries implemented so that you can follow the training progress in TensorBoard. (--logdir in the config section of finetune.py)

Content

  • alexnet.py: Class with the graph definition of the AlexNet.
  • finetune.py: Script to run the finetuning process.
  • datagenerator.py: Contains a wrapper class for the new input pipeline.
  • caffe_classes.py: List of the 1000 class names of ImageNet (copied from here).
  • validate_alexnet_on_imagenet.ipynb: Notebook to test the correct implementation of AlexNet and the pretrained weights on some images from the ImageNet database.
  • images/*: contains three example images, needed for the notebook.

Usage

All you need to touch is the finetune.py, although I strongly recommend to take a look at the entire code of this repository. In the finetune.py script you will find a section of configuration settings you have to adapt on your problem. If you do not want to touch the code any further than necessary you have to provide two .txt files to the script (train.txt and val.txt). Each of them list the complete path to your train/val images together with the class number in the following structure.

Example train.txt:
/path/to/train/image1.png 0
/path/to/train/image2.png 1
/path/to/train/image3.png 2
/path/to/train/image4.png 0
.
.

were the first column is the path and the second the class label.

The other option is that you bring your own method of loading images and providing batches of images and labels, but then you have to adapt the code on a few lines.

排名相邻
同类项目