All Projects β†’ karolzak β†’ Ipyplot

karolzak / Ipyplot

Licence: mit
IPyPlot is a small python package offering fast and efficient plotting of images inside Python Notebooks. It's using IPython with HTML for faster, richer and more interactive way of displaying big numbers of images.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ipyplot

Chafa
πŸ“ΊπŸ—Ώ Terminal graphics for the 21st century.
Stars: ✭ 774 (+409.21%)
Mutual labels:  image-processing, images, image-viewer
Keras transfer cifar10
Object classification with CIFAR-10 using transfer learning
Stars: ✭ 120 (-21.05%)
Mutual labels:  jupyter-notebook, image-classification, images
Oblique
With Oblique explore new styles of displaying images
Stars: ✭ 633 (+316.45%)
Mutual labels:  image-processing, images, image-viewer
Concise Ipython Notebooks For Deep Learning
Ipython Notebooks for solving problems like classification, segmentation, generation using latest Deep learning algorithms on different publicly available text and image data-sets.
Stars: ✭ 23 (-84.87%)
Mutual labels:  jupyter-notebook, image-classification, image-processing
Deep learning projects
Stars: ✭ 28 (-81.58%)
Mutual labels:  jupyter-notebook, image-classification, image-processing
Images Web Crawler
This package is a complete tool for creating a large dataset of images (specially designed -but not only- for machine learning enthusiasts). It can crawl the web, download images, rename / resize / covert the images and merge folders..
Stars: ✭ 51 (-66.45%)
Mutual labels:  image-classification, image-processing, images
Computervision Recipes
Best Practices, code samples, and documentation for Computer Vision.
Stars: ✭ 8,214 (+5303.95%)
Mutual labels:  jupyter-notebook, image-classification, image-processing
Image classifier
CNN image classifier implemented in Keras Notebook πŸ–ΌοΈ.
Stars: ✭ 139 (-8.55%)
Mutual labels:  jupyter-notebook, notebook, image-classification
Spark R Notebooks
R on Apache Spark (SparkR) tutorials for Big Data analysis and Machine Learning as IPython / Jupyter notebooks
Stars: ✭ 109 (-28.29%)
Mutual labels:  jupyter-notebook, notebook
Nvidia Gpu Tensor Core Accelerator Pytorch Opencv
A complete machine vision container that includes Jupyter notebooks with built-in code hinting, Anaconda, CUDA-X, TensorRT inference accelerator for Tensor cores, CuPy (GPU drop in replacement for Numpy), PyTorch, TF2, Tensorboard, and OpenCV for accelerated workloads on NVIDIA Tensor cores and GPUs.
Stars: ✭ 110 (-27.63%)
Mutual labels:  jupyter-notebook, image-processing
Protest Detection Violence Estimation
Implementation of the model used in the paper Protest Activity Detection and Perceived Violence Estimation from Social Media Images (ACM Multimedia 2017)
Stars: ✭ 114 (-25%)
Mutual labels:  jupyter-notebook, image-classification
Prml
PRML algorithms implemented in Python
Stars: ✭ 10,206 (+6614.47%)
Mutual labels:  jupyter-notebook, notebook
Self Driving Car
A End to End CNN Model which predicts the steering wheel angle based on the video/image
Stars: ✭ 106 (-30.26%)
Mutual labels:  jupyter-notebook, image-processing
Tensorflow2.0 Examples
πŸ™„ Difficult algorithm, Simple code.
Stars: ✭ 1,397 (+819.08%)
Mutual labels:  jupyter-notebook, image-classification
Nuxt Image Loader Module
An image loader module for nuxt.js that allows you to configure image style derivatives.
Stars: ✭ 135 (-11.18%)
Mutual labels:  image-processing, images
Fastdoc
Create publication-quality books from Jupyter notebooks
Stars: ✭ 134 (-11.84%)
Mutual labels:  jupyter-notebook, notebook
Boxdetection
A Box detection algorithm for any image containing boxes.
Stars: ✭ 104 (-31.58%)
Mutual labels:  jupyter-notebook, image-processing
Ipyexperiments
jupyter/ipython experiment containers for GPU and general RAM re-use
Stars: ✭ 128 (-15.79%)
Mutual labels:  jupyter-notebook, notebook
Datasets
🎁 3,000,000+ Unsplash images made available for research and machine learning
Stars: ✭ 1,805 (+1087.5%)
Mutual labels:  jupyter-notebook, images
Imageprocessing
MicaSense RedEdge and Altum image processing tutorials
Stars: ✭ 139 (-8.55%)
Mutual labels:  jupyter-notebook, image-processing

Build PyPI - version Downloads Downloads/Month license

Share:
Twitter URL LinkedIn URL

IPyPlot is a small python package offering fast and efficient plotting of images inside Python Notebooks cells. It's using IPython with HTML for faster, richer and more interactive way of displaying big numbers of images.

Displaying big numbers of images with Python in Notebooks always was a big pain for me as I always used matplotlib for that task and never have I even considered if it can be done faster, easier or more efficiently.
Especially in one of my recent projects I had to work with a vast number of document images in a very interactive way which led me to forever rerunning notebook cells and waiting for countless seconds for matplotlib to do it's thing..
My frustration grew up to the point were I couldn't stand it anymore and started to look for other options..
Best solution I found involved using IPython package in connection with simple HTML. Using that approach I built this simple python package called IPyPlot which finally helped me cure my frustration and saved a lot of my time.

Features:

  • [x] Easy, fast and efficient plotting of images in python within notebooks
  • [x] Plotting functions (see examples section to learn more):
    • [x] plot_images - simply plots all the images in a grid-like layout
    • [x] plot_class_representations - similar to plot_images but displays only the first image for each label/class (based on provided labels collection)
    • [x] plot_class_tabs - plots images in a grid-like manner in a separate tab for each label/class based on provided labels
  • [x] Supported image formats:
    • [x] Sequence of local storage URLs, e.g. [your/dir/img1.jpg]
    • [x] Sequence of remote URLs, e.g. [http://yourimages.com/img1.jpg]
    • [x] Sequence of PIL.Image objects
    • [x] Sequence of images as numpy.ndarray objects
    • [x] Supported sequence types: list, numpy.ndarray, pandas.Series
  • [x] Misc features:
    • [x] custom_texts param to display additional texts like confidence score or some other information for each image
    • [x] force_b64 flag to force conversion of images from URLs to base64 format
    • [x] click on image to enlarge
    • [x] control number of displayed images and their width through max_images and img_width params
    • [x] "show html" button which reveals the HTML code used to generate plots
    • [x] option to set specific order of labels/tabs, filter them or ignore some of the labels
  • [x] Supported notebook platforms:
    • [x] Jupyter
    • [x] Google Colab
    • [x] Azure Notebooks
    • [x] Kaggle Notebooks

Getting Started

To start using IPyPlot, see examples below or go to gear-images-examples.ipynb notebook which takes you through most of the scenarios and options possible with IPyPlot.

Installation

IPyPlot can be installed through PyPI:

pip install ipyplot

or directly from this repo using pip:

pip install git+https://github.com/karolzak/ipyplot

Usage examples

IPyPlot offers 3 main functions which can be used for displaying images in notebooks:

To start working with IPyPlot you need to simply import it like this:

import ipyplot

and use any of the available plotting functions shown below (notice execution times).

  • images - should be a sequence of either string (local or remote image file URLs), PIL.Image objects or numpy.ndarray objects representing images
  • labels - should be a sequence of string or int

Display a collection of images

Display class representations (first image for each unique label)

Display images in separate, interactive tabs for each unique class

To learn more about what you can do with IPyPlot go to gear-images-examples.ipynb notebook for more complex examples.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].