Skip to content

Commit

Permalink
update example scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
romainGuiet authored Dec 9, 2024
1 parent 9604bce commit 361870a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/cellpose_macro.ijm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
conda_env_path = "D:/conda/conda-envs/cellpose-307-gpu"
#@File(style="directory" , label="Select conda environment") conda_env_path
//run("Blobs (25K)"); // uncomment to test
image_title = getTitle();

run("Cellpose ..." ,"imp="+image_title+" conda_env_path="+conda_env_path+" diameter=30 model=cyto3 model_path= ch1=1 ch2=1 additional_flags=--use_gpu" );
run("Cellpose ..." ,"imp="+image_title+" conda_env_path="+conda_env_path+" env_type=conda diameter=30 model=cyto3 model_path= ch1=1 ch2=1 additional_flags=--use_gpu" );
7 changes: 4 additions & 3 deletions resources/scripts/cellpose_script.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ IJ.runMacro("close('\\\\Others');")

// cellpose parameters
def cp = new Cellpose();
cp.conda_env_path = conda_env_path
cp.env_path = conda_env_path
// Or comment the line avove and set the path manually
// to locate your conda env from a terminal type "conda env list", it will return the path you can paste below
//cp.conda_env_path = new File ( "D:/conda/conda_envs/cellpose/" ) ;
Expand All @@ -20,7 +20,8 @@ cp.diameter = 50;
cp.model = "cyto3";
cp.ch1 = 1 ;
cp.ch2 = 2 ;
cp.additional_flags= "--use_gpu, --do_3D, --anisotropy, 4 , --restore_type , denoise_cyto3";
//cp.additional_flags= "--use_gpu, --do_3D, --anisotropy, 4 , --restore_type , denoise_cyto3";
cp.additional_flags= "--use_gpu, --restore_type , denoise_cyto3";
// cellpose run
cp.run();
// get the output labels image
Expand All @@ -35,4 +36,4 @@ cp_imp.setDisplayRange(0, 12);
return

import ch.epfl.biop.wrappers.cellpose.ij2commands.Cellpose
import ij.IJ;
import ij.IJ;

0 comments on commit 361870a

Please sign in to comment.