Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions notebooks/train_Cellpose-SAM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -369,4 +369,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}