Skip to content

Bioimage Utils

Source

Bioimage.io utils.

create_env_text(pytorch_version, torchvision_version)

Create environment yaml content for the bioimage model.

This installs an environment with the specified pytorch version and the latest changes to careamics.

Parameters:

  • pytorch_version (str) –

    Pytorch version.

  • torchvision_version (str) –

    Torchvision version.

Returns:

  • str

    Environment text.

get_unzip_path(zip_path)

Generate unzipped folder path from the bioimage.io model path.

Parameters:

  • zip_path (Path) –

    Path to the bioimage.io model.

Returns:

  • Path

    Path to the unzipped folder.