Skip to main content

An easy-to-use image segmentation package

Project description

Bellybutton Image Segmentation (bellybuttonseg)

This is a machine-learning-based image segmentation package, designed for ease of use. Bellybutton uses a convolutional neural network, trained on images and paired user-generated masks, and outputs individually ID'd regions. Using the package requires no writing code; by editing a text file, users can edit hyper-parameters, modify data augmentation (e.g. rotate images), specify outputs and filetypes, and run training and prediction.

Quickstart guide

Install Bellybutton from command line / terminal

Create a new python environment, here we named it 'bellybuttonenv' (e.g. using anaconda: shorturl.at/elRTZ)

conda create --name bellybuttonenv

Activate this environment (e.g. using anaconda)

conda activate bellybuttonenv

Download Bellybutton package (pip will install other required packages automatically)

pip install bellybuttonseg

Run Bellybutton on your own dataset

  • Create a directory and bellybutton-required folders. When the code line below is run, you will be prompted to select a location and then prompted to enter a name for this project ([INPUT] Enter folder name for new project:). The entered name will be the name of the base folder, which you can always rename later.
python3 -m bellybuttonseg.newproject
  • Move your images, masks, and (optionally) areas of interest into the appropriate folders created in this new directory.

  • Edit the parameters inside the parameters.txt file if desired.

  • Run Bellybutton on your data. You will be prompted to select your project folder after running the below command.

python3 -m bellybuttonseg.train

Results will be stored inside a new folder inside [yourproject]/outputs/. You may always edit the base_parameters.txt file in your base folder and run Bellybutton again with the new parameters using the above line.

Enjoy!

Run Bellybutton on an example dataset (not yet working)

Create the example directory. When this line is run, you will be prompted to select a location for the example dataset to be saved.

python3 -m bellybuttonseg.example1

Note that the directory you selected now has a new folder: example_project_[DATASETINFO]. Inside there folders that hold images (train, test, predict), masks, areas of interest, and outputs. We have chosen [INSERT DATASET INFO]...

[optional] Edit hyper-parameters by opening and editing [new directory]/base_parameters.txt. A complete list of parameters and their meanings is included further in this readme.

Run Bellybutton on this dataset. When this line is run, you will be prompted to select the base folder for your project, in this case select example_project_[DATASETINFO] that you just created.

python3 -m bellybuttonseg.train

The algorithm should run and you can track its progress on the command line. A new folder (whose name is based on the date and time) will be created inside example_project_[DATASETINFO]/outputs/ that will store results. Once training and prediction are completed, peruse the results inside this folder. Note that a new used_parameters.txt file has been created inside this outputs folder that stores the parameters used.

To run Bellybutton again using different parameters, edit the base_parameters.txt before executing the above code line again.

Adjustable Parameters

[to be filled out]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bellybuttonseg-0.0.8.5.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

bellybuttonseg-0.0.8.5-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file bellybuttonseg-0.0.8.5.tar.gz.

File metadata

  • Download URL: bellybuttonseg-0.0.8.5.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.3

File hashes

Hashes for bellybuttonseg-0.0.8.5.tar.gz
Algorithm Hash digest
SHA256 85dc7b3709d2c76608d8fd9f35e3f854b9ba6452bd733346640256eea1f73fcd
MD5 db53eccd11fc757c5c82a5fb60767f80
BLAKE2b-256 502c02fd3e6d8e54dffc16069f2f9ccb98e457af23b7a512f2930a564434d135

See more details on using hashes here.

File details

Details for the file bellybuttonseg-0.0.8.5-py3-none-any.whl.

File metadata

File hashes

Hashes for bellybuttonseg-0.0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 51e23fc7d4475e472464bba3029ee9e5b0ea1c096adb7ec3b26bbd99576e254b
MD5 8668851e5ea882bd156394bf5482cab2
BLAKE2b-256 30e3a3640a47fd5e88bb328dd10b8b2f691d6bd3b20e7827eee2b70ef5f39198

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page