Coder Social home page Coder Social logo

fdsjk / batchviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabianisensee/batchviewer

0.0 1.0 0.0 10 KB

A tool to do quick and dirty inspection of multichannel 3D data. I use it mainly to visualize batches for deep learning.

License: Apache License 2.0

Python 100.00%

batchviewer's Introduction

BatchViewer

Simple, but effective tool to visualize 3D data with color channels. I use it mainly to tune data augmentation for deep learning and to quickly visualize data. It does not have much functionality.

Installation

  • clone the repository
  • go into the repository and install with pip install --upgrade .

How to use

Only works with 4D numpy arrays. Axes must be (c, x, y, z) where c is the color channel.

Run:

from batchviewer import view_batch

view_batch(data, width=300, height=300)

Note that width and height controls the size (in pixels) of each window. If the aspect ratio does not match the datas aspect ratio then the data is cropped. You can scroll through the 3D volume by using the mouse wheel. All color channels are synced. Scrolling with the mouse on one of the images will scroll 2 slices, otherwise just one. Panning and zooming not suported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.