Skip to content

Commit

Permalink
chore: Changed base path to utilize method
Browse files Browse the repository at this point in the history
  • Loading branch information
Flippchen committed Dec 30, 2023
1 parent 9c97ef2 commit 11488ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Import libraries
from keras.models import Sequential
from keras.applications import EfficientNetV2B1
from utilities.tools import *
from utilities.tools import get_data_path_addon, get_base_path, suppress_tf_warnings, load_dataset, show_augmented_batch, create_augmentation_layer, plot_model_score
from utilities.discord_callback import DiscordCallback
from keras.optimizers import Adam
from keras.regularizers import l1_l2
Expand All @@ -29,9 +29,10 @@
load_model = False
load_path = "../models/all_model_variants/efficientnet-old-head-model-variants.h5"
# Config
base_path = get_base_path()
path_addon = get_data_path_addon(model_type)
config = {
"path": f"C:/Users\phili/.keras/datasets/resized_DVM/{path_addon}",
"path": f"{base_path}/{path_addon}",
"batch_size": 32,
"img_height": img_height,
"img_width": img_width,
Expand Down

0 comments on commit 11488ca

Please sign in to comment.