Eric2983 commited on
Commit
446f661
1 Parent(s): db61bb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -1
app.py CHANGED
@@ -1,2 +1,40 @@
1
  import tensorflow as tf
2
- import matplotlib.pyplot as plt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import tensorflow as tf
2
+ import matplotlib.pyplot as plt
3
+ from google.colab import drive
4
+ drive.mount('/content/drive')
5
+
6
+ #Preprocesamiento de imagenes del conjunto de entrenamiento
7
+ training_set = tf.keras.utils.image_dataset_from_directory(
8
+ '/content/drive/MyDrive/TallerIII/FruitTrainingDataset/train',
9
+ labels="inferred",
10
+ label_mode="categorical",
11
+ class_names=None,
12
+ color_mode="rgb",
13
+ batch_size=32,
14
+ image_size=(64, 64),
15
+ shuffle=True,
16
+ seed=None,
17
+ validation_split=None,
18
+ subset=None,
19
+ interpolation="bilinear",
20
+ follow_links=False,
21
+ crop_to_aspect_ratio=False
22
+ )
23
+
24
+ #Preprocesamiento de imagenes del conjunto de validacion
25
+ validation_set = tf.keras.utils.image_dataset_from_directory(
26
+ '/content/drive/MyDrive/TallerIII/FruitTrainingDataset/validation',
27
+ labels="inferred",
28
+ label_mode="categorical",
29
+ class_names=None,
30
+ color_mode="rgb",
31
+ batch_size=32,
32
+ image_size=(64, 64),
33
+ shuffle=True,
34
+ seed=None,
35
+ validation_split=None,
36
+ subset=None,
37
+ interpolation="bilinear",
38
+ follow_links=False,
39
+ crop_to_aspect_ratio=False
40
+ )