Skip to content

Commit 7000f95

Browse files
authored
Merge pull request #1159 from unikill066/main
Correct file-filter condition in train_Cellpose-SAM.ipynb
2 parents e8637d5 + 682a1de commit 7000f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/train_Cellpose-SAM.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"# ^ assumes images from Cellpose GUI, if labels are tiffs, then \"_masks.tif\"\n",
180180
"\n",
181181
"# list all files\n",
182-
"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",
182+
"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",
183183
"\n",
184184
"if(len(files)==0):\n",
185185
" raise FileNotFoundError(\"no files found, did you specify the correct folder and extension?\")\n",
@@ -369,4 +369,4 @@
369369
},
370370
"nbformat": 4,
371371
"nbformat_minor": 0
372-
}
372+
}

0 commit comments

Comments
 (0)