Update Training/Code/train.py
Browse files- Training/Code/train.py +4 -2
Training/Code/train.py
CHANGED
@@ -10,8 +10,10 @@ from tensorflow.keras.optimizers import Adam
|
|
10 |
from sklearn.utils.class_weight import compute_class_weight
|
11 |
|
12 |
# ==================== Paths ====================
|
13 |
-
|
14 |
-
|
|
|
|
|
15 |
|
16 |
# ==================== Parameters ====================
|
17 |
img_size = (192, 192) # Recommended for EfficientNetV2B1
|
|
|
10 |
from sklearn.utils.class_weight import compute_class_weight
|
11 |
|
12 |
# ==================== Paths ====================
|
13 |
+
# Define paths
|
14 |
+
base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))
|
15 |
+
train_dir = os.path.join(base_dir, 'combine_dataset/train')
|
16 |
+
val_dir = os.path.join(base_dir, 'combine_dataset/test')
|
17 |
|
18 |
# ==================== Parameters ====================
|
19 |
img_size = (192, 192) # Recommended for EfficientNetV2B1
|