Skip to content

Commit 649a966

Browse files
committed
Disable checkpoint plot save
1 parent 30d3336 commit 649a966

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

napari_cellseg3d/code_plugins/plugin_model_training.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,19 +1169,19 @@ def plot_loss(self, loss, dice_metric):
11691169
)
11701170
self.canvas.draw_idle()
11711171

1172-
plot_path = self.worker_config.results_path_folder / Path(
1173-
"../Loss_plots"
1174-
)
1175-
Path(plot_path).mkdir(parents=True, exist_ok=True)
1176-
1177-
if self.canvas is not None:
1178-
self.canvas.figure.savefig(
1179-
str(
1180-
plot_path
1181-
/ f"checkpoint_metric_plots_{utils.get_date_time()}.png"
1182-
),
1183-
format="png",
1184-
)
1172+
# plot_path = self.worker_config.results_path_folder / Path(
1173+
# "../Loss_plots"
1174+
# )
1175+
# Path(plot_path).mkdir(parents=True, exist_ok=True)
1176+
#
1177+
# if self.canvas is not None:
1178+
# self.canvas.figure.savefig(
1179+
# str(
1180+
# plot_path
1181+
# / f"checkpoint_metric_plots_{utils.get_date_time()}.png"
1182+
# ),
1183+
# format="png",
1184+
# )
11851185

11861186
def update_loss_plot(self, loss, metric):
11871187
"""

0 commit comments

Comments
 (0)