Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from keras.preprocessing.image import ImageDataGenerator
- from keras.callbacks import LearningRateScheduler
- from keras.optimizers import SGD
- from cnn.resnet import ResNet
- from cnn import config
- from sklearn.metrics import classification_report
- from imutils import paths
- import matplotlib.pyplot as plt
- import numpy as np
- import argparse
- # set the matplotlib backend so figures can be saved in the background
- import matplotlib
- matplotlib.use("Agg")
- # construct the argument parser and parse the arguments
- ap = argparse.ArgumentParser()
- ap.add_argument("-p", "--plot", type=str, default="plot.png",
- help="path to output loss/accuracy plot")
- args = vars(ap.parse_args())
Add Comment
Please, Sign In to add comment