MCPcopy
hub / github.com/keplr-io/quiver

github.com/keplr-io/quiver @main sqlite

repository ↗ · DeepWiki ↗
91 symbols 242 edges 43 files 2 documented · 2%
README

Quiver

Gitter chat

Interactive convnet features visualization for Keras

gzqll3

The quiver workflow

Video Demo

  1. Build your model in keras

    python model = Model(...) 2. Launch the visualization dashboard with 1 line of code

    python quiver_engine.server.launch(model, classes=['cat','dog'], input_folder='./imgs') 3. Explore layer activations on all the different images in your input folder.

Quickstart

Installation

    pip install quiver_engine

If you want the latest version from the repo

    pip install git+git://github.com/keplr-io/quiver.git

Usage

Take your keras model, launching Quiver is a one-liner.

    from quiver_engine import server
    server.launch(model)

This will launch the visualization at localhost:5000

Options

    server.launch(
        model, # a Keras Model

        classes, # list of output classes from the model to present (if not specified 1000 ImageNet classes will be used)

        top, # number of top predictions to show in the gui (default 5)

        # where to store temporary files generatedby quiver (e.g. image files of layers)
        temp_folder='./tmp',

        # a folder where input images are stored
        input_folder='./',

        # the localhost port the dashboard is to be served on
        port=5000,
        # custom data mean
        mean=[123.568, 124.89, 111.56],
        # custom data standard deviation
        std=[52.85, 48.65, 51.56]
    )

Development

Building from master

Check out this repository and run

cd quiver_engine
python setup.py develop

Building the Client

    cd quiverboard
    npm install
    export QUIVER_URL=localhost:5000 # or whatever you set your port to be
    npm start

Note this will run your web application with webpack and hot reloading. If you don't care about that, or are only in this section because pip install somehow failed for you, you should tell it to simply build the javascript files instead

    npm run deploy:prod

Credits

  • This is essentially an implementation of some ideas of deepvis and related works.
  • A lot of the pre/pos/de processing code was taken from here and other writings of fchollet.
  • The dashboard makes use of react-redux-starter-kit

Citing Quiver

misc{bianquiver,
  title={Quiver},
  author={Bian, Jake},
  year={2016},
  publisher={GitHub},
  howpublished={\url{https://github.com/keplr-io/quiver}},
}

Core symbols most depended-on inside this repo

locationReducer
called by 7
quiver_engine/quiverboard/src/store/location.js
locationChange
called by 5
quiver_engine/quiverboard/src/store/location.js
render
called by 3
quiver_engine/quiverboard/src/components/ModelGraph/index.js
updateLocation
called by 3
quiver_engine/quiverboard/src/store/location.js
get_evaluation_context
called by 2
quiver_engine/util.py
load_img
called by 2
quiver_engine/util.py
render
called by 2
quiver_engine/quiverboard/src/main.js
computeCytoscapeGraph
called by 2
quiver_engine/quiverboard/src/components/ModelGraph/util.js

Shape

Function 77
Route 8
Class 4
Method 2

Languages

TypeScript58%
Python42%

Modules by API surface

quiver_engine/server.py19 symbols
quiver_engine/util.py12 symbols
quiver_engine/quiverboard/src/routes/home/state/app.js6 symbols
quiver_engine/quiverboard/src/components/ModelGraph/util.js6 symbols
quiver_engine/quiverboard/src/routes/home/state/layers.js5 symbols
quiver_engine/quiverboard/src/routes/home/resource/index.js4 symbols
quiver_engine/quiverboard/src/components/ModelGraph/index.js4 symbols
quiver_engine/quiverboard/src/store/location.js3 symbols
quiver_engine/quiverboard/src/routes/home/state/predictions.js3 symbols
quiver_engine/quiverboard/src/routes/home/state/model.js3 symbols
quiver_engine/quiverboard/src/routes/home/state/inputs.js3 symbols
quiver_engine/file_utils.py3 symbols

Dependencies from manifests, versioned

babel-core6.14.0 · 1×
babel-eslint7.1.0 · 1×
babel-loader6.2.5 · 1×
babel-plugin-istanbul2.0.1 · 1×
babel-plugin-transform-runtime6.15.0 · 1×
babel-preset-es20156.14.0 · 1×
babel-preset-react6.11.1 · 1×
babel-preset-stage-06.3.13 · 1×
babel-runtime6.11.6 · 1×
better-npm-run0.0.13 · 1×
chai3.4.1 · 1×
chai-as-promised6.0.0 · 1×

For agents

$ claude mcp add quiver \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact