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
commands: | |
01_install_pip: | |
command: "yum install -y python3-pip" | |
ignoreErrors: true | |
02_install_supervisor: | |
command: "/usr/bin/pip3 install supervisor" | |
03_create_nonroot_user: | |
command: "useradd -r -M -s /sbin/nologin nonrootuser || true" | |
ignoreErrors: true |
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
train_images_art = [] | |
for directory in glob.glob('./images/images/*'): | |
for filename in glob.glob(directory + '/*'): | |
image = cv2.imread(filename) | |
image = cv2.resize(image, (64, 64)) | |
image = tf.keras.preprocessing.image.img_to_array(image) | |
train_images_art.append(image) | |
train_images_art = np.array(train_images_art, dtype="float") | |
train_images_art = (train_images_art - 127.5) / 127.5 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.