Skip to content

Instantly share code, notes, and snippets.

View zxs1652's full-sized avatar

Chaoqi Zhang zxs1652

  • Beijing Institute of Technology
  • Beijing Institute of Technology
  • 19:36 (UTC -12:00)
View GitHub Profile
@zxs1652
zxs1652 / googlenet.py
Created April 8, 2021 11:10 — forked from joelouismarino/googlenet.py
GoogLeNet in Keras
from __future__ import print_function
import imageio
from PIL import Image
import numpy as np
import keras
from keras.layers import Input, Dense, Conv2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, Dropout, Flatten, Concatenate, Reshape, Activation
from keras.models import Model
from keras.regularizers import l2
from keras.optimizers import SGD
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
@zxs1652
zxs1652 / alexnet_tensorflow.ipynb
Created March 10, 2021 03:25 — forked from agrhn/alexnet_tensorflow.ipynb
AlexNet_TensorFlow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.