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 details)

Uploaded Python 3

File details

Details for the file animask-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: animask-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for animask-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78cb8df33dd07c278922a7473ae0a1307ce3ba11be43df27e022651a0fb2ca43
MD5 c4a7ce22fca3c44b3703383b5b38f9a5
BLAKE2b-256 955c87bd4db675dd3240db7c868a9dfebc6137384a312c484e88f50f6b8caad6

See more details on using hashes here.

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