Skip to contents

Creates and configures a Python virtual environment or conda environment with the requested deep learning segmentation backends (Cellpose, StarDist) installed.

Usage

sg_setup_python(
  envname = "segmantr",
  method = c("auto", "conda", "virtualenv"),
  backends = c("cellpose", "stardist"),
  gpu = TRUE
)

Arguments

envname

Character string naming the Python environment. Default is "segmantr".

method

Character string specifying the environment type. One of "auto" (default), "conda", or "virtualenv".

backends

Character vector of backends to install. Supported values are "cellpose" and "stardist".

gpu

Logical; if TRUE (default), attempts to install GPU-enabled versions of the backends.

Value

Invisibly returns TRUE on success.

Examples

if (FALSE) { # \dontrun{
sg_setup_python(backends = "cellpose")
} # }