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

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

  • A CUDA capable GPU with CUDA toolkit correctly installed

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.1.tar.gz (9.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for scatnetgpu-1.1.tar.gz
Algorithm Hash digest
SHA256 163e3b9629b380322d576a94d912306d05f8407e91892e4917b1520a4fd1bbb3
MD5 4a5810371c7434e17c2b9900b46f973a
BLAKE2b-256 fc031751da6cea353eaff81cacb7dcff8b8aebc179969b9ad64e0b39fd9a9320

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