Update model.py
Browse files
model.py
CHANGED
|
@@ -3,7 +3,7 @@ from tensorflow.keras.layers import Dropout, Dense,GlobalAveragePooling2D, Input
|
|
| 3 |
from tensorflow.keras.applications import EfficientNetB7
|
| 4 |
from tensorflow.keras.models import Model
|
| 5 |
|
| 6 |
-
def
|
| 7 |
"""Creates an EfficientNetB7 model with additional layers for fine-tuning.
|
| 8 |
Args:
|
| 9 |
num_classes (int, optional): Number of classes in the classifier head.
|
|
|
|
| 3 |
from tensorflow.keras.applications import EfficientNetB7
|
| 4 |
from tensorflow.keras.models import Model
|
| 5 |
|
| 6 |
+
def create_effnetb2_model(num_classes=15, seed=42):
|
| 7 |
"""Creates an EfficientNetB7 model with additional layers for fine-tuning.
|
| 8 |
Args:
|
| 9 |
num_classes (int, optional): Number of classes in the classifier head.
|