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:

Name Type Description Default
pytorch_version str

Pytorch version.

required
torchvision_version str

Torchvision version.

required

Returns:

Type Description
str

Environment text.

get_unzip_path(zip_path)

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

Parameters:

Name Type Description Default
zip_path Path

Path to the bioimage.io model.

required

Returns:

Type Description
Path

Path to the unzipped folder.