This file contains hidden or 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
| import keras | |
| from keras.applications.vgg16 import VGG16 | |
| from keras.applications.vgg16 import preprocess_input, decode_predictions | |
| from keras.preprocessing import image | |
| import keras.backend as K | |
| import tensorflow as tf | |
| from tensorflow.python.framework import ops | |
| import numpy as np |
This file contains hidden or 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
| from keras.applications.resnet50 import ResNet50 | |
| from keras.applications.resnet50 import preprocess_input, decode_predictions | |
| from keras.applications.inception_v3 import InceptionV3 | |
| from keras.applications.inception_v3 import preprocess_input, decode_predictions | |
| from keras.preprocessing import image | |
| import keras.backend as K | |
| import numpy as np |
This file contains hidden or 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
| from keras.applications.resnet50 import ResNet50 | |
| from keras.applications.resnet50 import preprocess_input, decode_predictions | |
| from keras.preprocessing import image | |
| import keras.backend as K | |
| import numpy as np | |
| import cv2 | |
| def load_image(path, target_size=(224, 224)): |
This file contains hidden or 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
| module Jekyll | |
| class TagIndex < Page | |
| def initialize(site, base, dir, tag) | |
| @site = site | |
| @base = base | |
| @dir = dir | |
| @name = 'index.html' | |
| self.process(@name) | |
| self.read_yaml(File.join(base, '_layouts'), 'tag_index.html') | |
| self.data['tag'] = tag |