Skip to main content

Scattering Network for Python and CUDA

Project description

Description

scatnetgpu is a module to compute the Scattering Network representation [1] of an image using the power of a CUDA capable GPU.

The output of the computation is compatible with the software scatnet.

Requirements

To run the main code:

  • Python 2.7 (not yet tested with Python 3.x)

  • A CUDA capable GPU with CUDA toolkit correctly installed

To create filters:

  • Octave installed

  • scatnet installed and in the default octave path

Installation

Just run:

$ pip install scatnetgpu

Alternatively, clone the repository and run:

$ pip install .

Quickstart

Load or create an image as a Numpy’s ndarray. Here we load an image with OpenCV:

import cv2
img = cv2.imread('image.png')

Create the ScatNet object:

from scatnetgpu import ScatNet
sn = ScatNet(M=2, J=4, L=6)

Perform the actual transformation

out = sn.transform(img)

Now out contains the features of the Scattering Network representation of img.

References

[1] Bruna, Joan, and Stéphane Mallat. “Invariant scattering convolution networks.” IEEE transactions on pattern analysis and machine intelligence 35.8 (2013): 1872-1886.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scatnetgpu-1.0.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file scatnetgpu-1.0.tar.gz.

File metadata

  • Download URL: scatnetgpu-1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scatnetgpu-1.0.tar.gz
Algorithm Hash digest
SHA256 2a84d739de75193ba8bbcb9be809658d50411ed8339eaeaafd399d69b25a7b33
MD5 5c1d33ff42f03eb959da6af740b4601d
BLAKE2b-256 5b50aa3165764bfe60b4ab19ab22da24499ce507a8a47fe3aa6676b086c3b2b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page