aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorDavid Doan <daviddoan@davids-mbp-3.devices.brown.edu>2022-05-04 00:09:32 -0400
committerDavid Doan <daviddoan@davids-mbp-3.devices.brown.edu>2022-05-04 00:09:32 -0400
commitd19f9ab05c189ce0cdc9271669d61b5f0e5db0fb (patch)
tree729fcd7f9f9bf0b553fb8c92ef8019e2a5e926a2 /main.py
parent8fd2dc0bed674e9098e4de312f571e6ba9a70550 (diff)
added a dataset, tried testing (unsuccessfully)
Diffstat (limited to 'main.py')
-rw-r--r--main.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.py b/main.py
index ca87788d..837dea81 100644
--- a/main.py
+++ b/main.py
@@ -6,11 +6,11 @@ from datetime import datetime
import tensorflow as tf
import hyperparameters as hp
-from models import YourModel, VGGModel
+from losses import YourModel
from preprocess import Datasets
from skimage.transform import resize
-from tensorboard_utils import \
- ImageLabelingLogger, ConfusionMatrixLogger, CustomModelSaver
+# from tensorboard_utils import \
+# ImageLabelingLogger, ConfusionMatrixLogger, CustomModelSaver
from skimage.io import imread
from lime import lime_image
@@ -128,9 +128,9 @@ def train(model, datasets, checkpoint_path, logs_path, init_epoch):
tf.keras.callbacks.TensorBoard(
log_dir=logs_path,
update_freq='batch',
- profile_batch=0),
- ImageLabelingLogger(logs_path, datasets),
- CustomModelSaver(checkpoint_path, ARGS.task, hp.max_num_weights)
+ profile_batch=0)
+ # ImageLabelingLogger(logs_path, datasets),
+ # CustomModelSaver(checkpoint_path, ARGS.task, hp.max_num_weights)
]
# Include confusion logger in callbacks if flag set