Skip to main content

Composable sampling functions for diffusion models

Project description

Skrample 0.2.0

Composable sampling functions for diffusion models

Status

Vertical slice, overtaking most diffusers features in quickdif

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
    • Ancestral
  • DPM
    • 1st order, 2nd order, 3rd order
    • SDE
  • IPNDM
    • Ancestral (from Euler)
  • UniPC
    • N order, limited to 9 for stability
    • Custom solver via other SkrampleSampler types

Schedules

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

Schedule modifiers

  • Karras
  • Exponential
  • FlowShift
  • Beta

Predictors

  • Epsilon
  • Velocity / vpred
  • Flow

Noise generators

  • Random
  • Brownian
  • Offset
  • Pyramid

Integrations

Diffusers

  • Compatibility for pipelines
    • SD1
    • SDXL
    • SD3
    • Flux
    • Others?
  • 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.2.0.tar.gz (28.6 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.2.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skrample-0.2.0.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for skrample-0.2.0.tar.gz
Algorithm Hash digest
SHA256 89f9ddda41f412189dcb604e24bff2aef1a788596dbb83b77cdc30bdc8376b4e
MD5 954a69afb11d3b931d863d8a9ddd8ce2
BLAKE2b-256 845a2b7990c17243bb86bdb378c28b5cbf724b3f3a2b2575d99fff6eb6137d11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skrample-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for skrample-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36fc37c3f04c1a3d9d5f62d360e003d8a9c183cbde9521c933a1a3f181595d35
MD5 c477fc91b817e9b03a387c14272b13d5
BLAKE2b-256 e5e37bf94d808ddb74010a2e9d353121148d6db7992c93e0de0cef9b4c45812b

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