Ich importiere den Datensatz mit
Code: Select all
import pathlib
dataset_url = "https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz"
archive = tf.keras.utils.get_file(origin=dataset_url, extract=True)
data_dir = pathlib.Path(archive).with_suffix('')
Code: Select all
image_count = len(list(data_dir.glob('*/*.jpg')))
print(image_count)
Code: Select all
import os
print(data_dir)
print(archive)
os.listdir()
Code: Select all
os.listdir()Warum werden meine Bilder nicht geladen?
Der Link zum Notizbuch ist hier:
https://colab.research.google.com/githu ... ages.ipynb
Mobile version