Какая-то нейронка
!pip install tensorflow matplotlib numpy import matplotlib.pyplot as plt
import numpy as np
import PIL
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras.models import Sequential img_height = 80
img_width = 80
batch_size = 256 train = tf.keras.utils.image_dataset_from_directory(
'dataset/train',
image_size=(img_height, img_width),
batch_size=batch_size)
val = tf.keras.utils.image_dataset_from_directory(
'dataset/val',
image_size=(img_height, img_width),
batch_size=batch_size) class_names = train.class_names
print(f"Class names: {class_names}")
# cache
AUTOTUNE = tf...