Skip to main content

Composable sampling functions for diffusion models

Project description

Skrample 0.2.2

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.2.tar.gz (28.7 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.2-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for skrample-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1818a3b00dd46a0ea0dfaf42f4b8dc6674e21c1fe4c761c54f67c8b9a2ed49fa
MD5 558ac95aa53dace9eaeee2a86f57c9b2
BLAKE2b-256 a08b6ae2da49c8a1e2f4d3db180b1a6b042268fad09ab02e0c02d4ee84d48248

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for skrample-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0eebf7bb6a8fd28da0794ada0014c7971cc9ef03d2df1b4d3fc818f0c119a3ff
MD5 8b3f89e80e1df6765fdd54c620b9638f
BLAKE2b-256 ee45178462bf5f13f3976f932475c34278863c59f5fce91b72ca1369f32170fc

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