imports needed for image feature extraction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for loading/processing the images | |
from keras.preprocessing.image import load_img | |
from keras.preprocessing.image import img_to_array | |
from keras.applications.vgg16 import preprocess_input | |
# models | |
from keras.applications.vgg16 import VGG16 | |
from keras.models import Model | |
# clustering and dimension reduction | |
from sklearn.cluster import KMeans | |
from sklearn.decomposition import PCA | |
# for everything else | |
import os | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from random import randint | |
import pandas as pd | |
import pickle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment