Skip to main content

Composable sampling functions for diffusion models

Project description

Skrample 0.4.2

Composable sampling functions for diffusion models

Status

Mostly complete for common models, superseding all diffusers features in quickdif

Quickstart

Fastest way to jump in is examples. The classes and functions themselves have docstrings and type hints, so it's recommended to make liberal use of your IDE or python help()

Feature Flags

  • beta-schedule -> scipy : For the Beta() schedule modifier
  • brownian-noise -> torchsde : For the Brownian() noise generator
  • cdf-schedule -> scipy : For the SigmoidCDF() schedule
  • diffusers-wrapper -> torch : For the diffusers integration module
  • pytorch -> torch : For the pytorch module
    • pytorch.noise : Custom generators
  • all : All of the above
  • dev : For running tests/

Samplers

  • Euler
  • DPM
    • 1st order, 2nd order, 3rd order
    • SDE
  • Adams/IPNDM
  • UniP & UniPC
    • N order, limited to 9 for stability
    • Custom solver via other SkrampleSampler types
  • SPC
    • Basic fully customizable midpoint corrector

Schedules

  • Linear
  • Scaled
    • uniform flag, AKA "trailing" in diffusers
  • SigmaCDF
  • ZSNR

Schedule modifiers

  • Karras
  • Exponential
  • FlowShift
  • Beta
  • Hyper

Predictors

  • Epsilon
  • Velocity / vpred
  • Flow

Noise generators

  • Random
  • Brownian
  • Offset
  • Pyramid

Integrations

Diffusers

  • Compatibility for pipelines
    • SD1
    • SDXL
    • SD3
    • Flux
  • Import from config
    • Sampler
    • Schedule
    • Predictor
  • Manage state
    • Steps
    • Higher order
    • Generators
    • Config as presented

Implementations

quickdif

My diffusers cli quickdif has full support for all major Skrample features, allowing extremely fine-grained customization.

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

skrample-0.4.2.tar.gz (229.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skrample-0.4.2-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file skrample-0.4.2.tar.gz.

File metadata

  • Download URL: skrample-0.4.2.tar.gz
  • Upload date:
  • Size: 229.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for skrample-0.4.2.tar.gz
Algorithm Hash digest
SHA256 bc6faeb0580a9d02ed284191dd5eea08a8125d3f0525caa987c774ff0098d2d4
MD5 4a83cdea0f2b54d55ad7d4d1bf3a3760
BLAKE2b-256 1314367077b8026b5c9d631aa6f93209cbf5edf1247aa42ff366c0d34522572c

See more details on using hashes here.

File details

Details for the file skrample-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: skrample-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for skrample-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 35483b12042cc0e30c8199044c0936c10ca98cbdd9c8166afe0573554d59533e
MD5 bfa8d742d97071f544ff1026e62167b9
BLAKE2b-256 ebdf436dca3249eb2b0342947e7ab5c6b488180a8f1a56989cc65ba4d48d91b7

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