October 2018
Intermediate to advanced
472 pages
10h 57m
English
We will be using the Keras APIs with a TensorFlow approach to create the YOLOv2 architecture. Let's import all the dependencies:
pip install keras tensorflow tqdm numpy cv2 imgaug
Following is the code for this:
from keras.models import Sequential, Modelfrom keras.layers import Reshape, Activation, Conv2D, Input, MaxPooling2D, BatchNormalization, Flatten, Dense, Lambdafrom keras.layers.advanced_activations import LeakyReLUfrom keras.callbacks import EarlyStopping, ModelCheckpoint, TensorBoardfrom keras.optimizers import SGD, Adam, RMSpropfrom keras.layers.merge import concatenateimport matplotlib.pyplot as pltimport keras.backend as Kimport tensorflow as tfimport imgaug as iafrom tqdm import tqdmfrom imgaug ...
Read now
Unlock full access