andrewsunanda commited on
Commit
a255901
·
1 Parent(s): 9242308

Update eda.py

Browse files
Files changed (1) hide show
  1. eda.py +8 -5
eda.py CHANGED
@@ -30,17 +30,20 @@ def run():
30
 
31
 
32
  st.markdown('---')
33
- dataset_path = "andrewsunanda/fast_food_image_classification"
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 = load_dataset(dataset_path)
41
- train_path = dataset['train'].cache_files[0].split('train')[0] + 'train'
42
- valid_path = dataset['valid'].cache_files[0].split('valid')[0] + 'valid'
43
- test_path = dataset['test'].cache_files[0].split('test')[0] + 'test'
 
 
 
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,