Skip to main content

Visualization of the predictions of the network during training.

Project description

Animask

Animated (GIF) masks after each epoch. Only semantic segmentation is supported. Example with background

Installation

First you need to install gifsicle:

$ sudo apt-get install gifsicle

Then install animask by pip or directly from repo:

$ pip install animask

or

$ pip install git+https://github.com/sankovalev/animask.git

Usage

from animask import Animask

# init object with the image that the mask will be predicted for
animated = Animask(image)

# === repeat this every epoch: ===
# train your model ...
# predict mask for image
# and then add to object as numpy array
animated.add(predicted_mask)
# === finish training ===

# save your gif
animated.save("path_to_file_here.gif")

By default, masks will be saved without a background. To apply masks over the original image, save it with flag:

animated.save("path_to_file_here.gif", with_background=True)

Additionally, you can configure mask titles, color or transparency and etc.

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

animask-0.0.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

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