All Projects → Mira-13 → Figure Gen

Mira-13 / Figure Gen

Licence: mit
A Python package to effortlessly assemble images in comparison figures. Supports LaTeX, PPTX, and HTML.

Projects that are alternatives of or similar to Figure Gen

Nlp Various Tutorials
자연어 처리와 관련한 여러 튜토리얼 저장소
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Deeplens Workshops
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Tensorflow
Tensorflow实战学习笔记、代码、机器学习进阶系列
Stars: ✭ 1,066 (+1911.32%)
Mutual labels:  jupyter-notebook
Onnx tflite yolov3
A Conversion tool to convert YOLO v3 Darknet weights to TF Lite model (YOLO v3 PyTorch > ONNX > TensorFlow > TF Lite), and to TensorRT (YOLO v3 Pytorch > ONNX > TensorRT).
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Hsuantienlin Ml Camp
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Lung Diseases Classifier
Diseases Detection from NIH Chest X-ray data
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Sirmodel covid 19
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Tensorflow Tutorials For Time Series
TensorFlow Tutorial for Time Series Prediction
Stars: ✭ 1,067 (+1913.21%)
Mutual labels:  jupyter-notebook
Cvnd Udacity
Computer Vision Nanodegree program from Udacity
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Python Tutorial Notebooks
Python tutorials as Jupyter Notebooks for NLP, ML, AI
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Kaggle Kannada Mnist 3rd Solution
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Metrotwitter
What Twitter reveals about the differences between cities and the monoculture of the Bay Area
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Sklearn Deeprl
Deep reinforcement learning. In scikit-learn. In less than 50 effective lines.
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Feature Selection For Machine Learning
Code Repository for the online course Feature Selection for Machine Learning
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Fasttext multilingual
Multilingual word vectors in 78 languages
Stars: ✭ 1,067 (+1913.21%)
Mutual labels:  jupyter-notebook
Continuousparetomtl
[ICML 2020] PyTorch Code for "Efficient Continuous Pareto Exploration in Multi-Task Learning"
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Cs224n Gpu That Talks
Attention, I'm Trying to Speak: End-to-end speech synthesis (CS224n '18)
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook
Targeted literature reviews via webscraping
Web scraping to get articles for a given query. It returns an spreadsheet with titles, abstracts, doi and references of the article
Stars: ✭ 53 (+0%)
Mutual labels:  jupyter-notebook
Aws Machine Learning University Accelerated Cv
Machine Learning University: Accelerated Computer Vision Class
Stars: ✭ 1,068 (+1915.09%)
Mutual labels:  jupyter-notebook
Average Word2vec
🔤 Calculate average word embeddings (word2vec) from documents for transfer learning
Stars: ✭ 52 (-1.89%)
Mutual labels:  jupyter-notebook

Figure Generator

This is an awesome figure generator. It generates figures in pdf-, html- and pptx-format. The following image shows the output of one of our test files ("tests/pool.py"):

This tool might help not only to create final figures, but also to analyze images faster: We offer a bunch of error metrics that allows not only to compare images visually but also mathematically.

Why did we create a figure generator?

In rendering research, it is quite common to create figures of "comparison"-type. Meaning, that we start with a set of generated images, that needs to be compared. Often, one rendered scene is not enough, therefore, we need several comparison figures - preferably in a similar or same style as the other created figures.

We support grids (images that are grid-like arranged) and simple line-plotting. To get a further understanding what grids are, you might want to have a look at our tutorial (Tutorial.ipynb).

Dependencies

Mandatory:

  • Python 3.6+ with opencv-python and simpleimageio

Optional:

  • For the .pdf backend: pdflatex (in path) with at least: tikz, calc, standalone, fontenc, libertine, inputenc.
  • For the .pptx backend: python-pptx
  • To include pdf files as image data: PyPDF2, and pdf2image (which requires poppler).

Quickstart

You can install the figure generator and all mandatory dependencies with a simple:

python -m pip install figuregen

The fastest way to get a first figure is by using an existing template:

import simpleimageio as sio
import figuregen
from figuregen.util.templates import CropComparison
from figuregen.util.image import Cropbox

figure = CropComparison(
    reference_image=sio.read("images/pool/pool.exr"),
    method_images=[
        sio.read("images/pool/pool-60s-path.exr"),
        sio.read("images/pool/pool-60s-upsmcmc.exr"),
        sio.read("images/pool/pool-60s-radiance.exr"),
        sio.read("images/pool/pool-60s-full.exr"),
    ],
    crops=[
        Cropbox(top=100, left=200, height=96, width=128, scale=5),
        Cropbox(top=100, left=450, height=96, width=128, scale=5),
    ],
    scene_name="Pool",
    method_names=["Reference", "Path Tracer", "UPS+MCMC", "Radiance-based", "Ours"]
)

# here you can modify the figure layout and data
# ...

# Generate the figure with the pdflatex backend and default settings
figuregen.figure([figure.figure_row], width_cm=17.7, filename="pool_with_template.pdf")

The template simply creates a list of Grid objects that can be modified and extended arbitrarily before passing it to the figure() function.

Examples and inspiration for creating your own figure layouts can be found in our examples or the Jupyter tutorial.

Examples

Clicking on an image below leads to the test that created the corresponding figure.

Vertical stacks

Split Comparison

Crop Comparison

Plots

Grid with titles, labels, markers, and frames

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].