Commit
·
a255901
1
Parent(s):
9242308
Update eda.py
Browse files
eda.py
CHANGED
@@ -30,17 +30,20 @@ def run():
|
|
30 |
|
31 |
|
32 |
st.markdown('---')
|
33 |
-
|
34 |
|
35 |
|
36 |
# Define batch size and image size
|
37 |
batch_size = 256
|
38 |
img_size = (64, 64)
|
39 |
# Define paths to the data folders
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
44 |
# Create data generators for training, validation, and testing
|
45 |
train_datagen = ImageDataGenerator(
|
46 |
rescale=1./255,
|
|
|
30 |
|
31 |
|
32 |
st.markdown('---')
|
33 |
+
|
34 |
|
35 |
|
36 |
# Define batch size and image size
|
37 |
batch_size = 256
|
38 |
img_size = (64, 64)
|
39 |
# Define paths to the data folders
|
40 |
+
dataset_path = 'andrewsunanda/fast_food_image_classification'
|
41 |
+
|
42 |
+
|
43 |
+
# Define the paths to the train, validation, and test folders
|
44 |
+
train_path = os.path.join(dataset_path, 'Train')
|
45 |
+
valid_path = os.path.join(dataset_path, 'Valid')
|
46 |
+
test_path = os.path.join(dataset_path, 'Test')
|
47 |
# Create data generators for training, validation, and testing
|
48 |
train_datagen = ImageDataGenerator(
|
49 |
rescale=1./255,
|