Demo entry 6782345

import ve path

   

Submitted by anonymous on Jan 12, 2019 at 15:26
Language: Python 3. Code size: 483 Bytes.

import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import os
from pathlib import Path

import keras
from keras.preprocessing.image import ImageDataGenerator
from keras.applications import ResNet50
from keras.applications.resnet50 import preprocess_input
from keras import Model, layers

base_dir = Path("/content/gdrive/My Drive/Colab Notebooks/data-bugs/")
train_dir = os.path.join(base_dir, 'train')
validation_dir = os.path.join(base_dir, 'valid')

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).