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
# Creates txt file containing file names from the data set located in DATASET_DIR and | |
# crops the images according to IMAGE_WIDTH and IMAGE_HEIGHT | |
import os | |
import numpy | |
import shutil | |
from PIL import Image | |
# Resize images to 128x128, channel 3 because colored | |
IMAGE_WIDTH, IMAGE_HEIGHT = 128, 128 |