Skip to main content

Composable sampling functions for diffusion models

Project description

Skrample 0.3.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

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.3.0.tar.gz (148.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.3.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for skrample-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5ba55086b4a54a6c50b8a109cb90234f276fb058849845ed003d457df8136e5b
MD5 3d1377b0e059a6099a8ac5c178a5df85
BLAKE2b-256 d4887f33a4007f89cc35f49d8f539092fa02e82b0f20b1697911267a611de51e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for skrample-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79892eb14ab5361057e67bd8a425bab059c63591fa86f61ec113ff90dd9fbbab
MD5 e88dd9924a157ad77f879b7729a7fbb9
BLAKE2b-256 4f98fbf956fcdea3395f82084a6133af0dde422f1f845399dead52b653e7f75c

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