Tag: Machine Learning

How to Open Byte Image using Keras

import gunicorn from urllib.parse import unquote_plus import json import cgi import sys import traceback from backdoria import predict_backdoria_web from femgen import predict_femgen_web from penialized import predict_penialized_web from genyolo import predict_genyolo_web import numpy as np from PIL import Image import io from timeit import default_timer as timer predict_backdoria_web.load_model() predict_femgen_web.load_model() predict_penialized_web.load_model() predict_genyolo_web.load_model() def app(environ, start_response): try: request_size […]

Training a object detection model on Fashion-MNIST

For more details about the dataset: https://github.com/zalandoresearch/fashion-mnist This notebook was adopted from: https://github.com/wagonhelm/NaNmnist/blob/master/NaNmnist.ipynb IMPORTANT: First download the dataset from here https://github.com/zalandoresearch/fashion-mnist#get-the-data and put them in the data/fashion directory. Otherwise, tensorflow will download the traditional handwritten digit mnist dataset. from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets(‘data/fashion’, one_hot=True) import matplotlib.pyplot as plt import numpy as np import […]

Back To Top