From 682a1deb200e7cd677518416edb2de6565330793 Mon Sep 17 00:00:00 2001 From: Nikhil I <56198218+unikill066@users.noreply.github.com> Date: Wed, 7 May 2025 10:44:36 -0500 Subject: [PATCH] correct f.name in train-cellpose-SAM --- notebooks/train_Cellpose-SAM.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/train_Cellpose-SAM.ipynb b/notebooks/train_Cellpose-SAM.ipynb index a83564bc..20c9af5b 100644 --- a/notebooks/train_Cellpose-SAM.ipynb +++ b/notebooks/train_Cellpose-SAM.ipynb @@ -179,7 +179,7 @@ "# ^ assumes images from Cellpose GUI, if labels are tiffs, then \"_masks.tif\"\n", "\n", "# list all files\n", - "files = [f for f in Path(train_dir).glob(\"*\") if \"_masks\" not in f.name and \"_flows\" not in f.name and \"_seg\" not in name]\n", + "files = [f for f in Path(train_dir).glob(\"*\") if \"_masks\" not in f.name and \"_flows\" not in f.name and \"_seg\" not in f.name]\n", "\n", "if(len(files)==0):\n", " raise FileNotFoundError(\"no files found, did you specify the correct folder and extension?\")\n", @@ -369,4 +369,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}