Skip to main content

Composable sampling functions for diffusion models

Project description

Skrample 0.4.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
  • 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
    • 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.4.0.tar.gz (228.2 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.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for skrample-0.4.0.tar.gz
Algorithm Hash digest
SHA256 95453139efb84a7ec8191cf837970b35ea5930d35acafc223ba0099312cf1352
MD5 0c203bda0add289ec4a5d6d9e7aa1edc
BLAKE2b-256 58ab2a5f9deb184cc415c915f66271b09cc011d979b5365aaaffd6adbfad5dd0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for skrample-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce10776bd965577b6be2131fcae9fbb2c1e39bc3131491002e4e14e296ee240
MD5 61d116c41b5ebf2685098e3447f892bc
BLAKE2b-256 f835bc4fd4492a7d0af97ac38a19c5fd6973f472b0d7729ca477763d8eaeedef

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