Skip to content

Instantly share code, notes, and snippets.

@trongan93
Last active June 12, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trongan93/eb3cedd9f6dab1a15d7ee3892cd3f960 to your computer and use it in GitHub Desktop.
Save trongan93/eb3cedd9f6dab1a15d7ee3892cd3f960 to your computer and use it in GitHub Desktop.
CNN Training on Satellite image dataset
import json, sys, random
import numpy as np
import tensorflow as tf
import tensorflow.keras
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Flatten, Activation
from tensorflow.keras.layers import Dropout
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.optimizers import SGD
import tensorflow.keras.callbacks
from PIL import Image, ImageDraw
from matplotlib import pyplot as plt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment