PHPackages                             andrey-helldar/stable-diffusion-ui-samplers-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. andrey-helldar/stable-diffusion-ui-samplers-generator

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

andrey-helldar/stable-diffusion-ui-samplers-generator
=====================================================

Sampler generator for Easy Diffusion UI

v1.4.1(2y ago)04MITPHPPHP ^8.1

Since Dec 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/andrey-helldar/easy-diffusion-ui-samplers-generator)[ Packagist](https://packagist.org/packages/andrey-helldar/stable-diffusion-ui-samplers-generator)[ Fund](https://boosty.to/dragon-code)[ GitHub Sponsors](https://github.com/sponsors/TheDragonCode)[ RSS](/packages/andrey-helldar-stable-diffusion-ui-samplers-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (10)Versions (8)Used By (0)

Easy Diffusion UI: Samplers Generator
=====================================

[](#easy-diffusion-ui-samplers-generator)

[![andrey helldar SD: samplers generator](https://camo.githubusercontent.com/0f7367361be297f60409174e2cedb9ccb95c218d3ebfefb9edc994b4abebdc87/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f616e647265792d68656c6c6461722f73616d706c6572732d67656e657261746f722e7376673f6d6f64653d6461726b)](https://camo.githubusercontent.com/0f7367361be297f60409174e2cedb9ccb95c218d3ebfefb9edc994b4abebdc87/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f616e647265792d68656c6c6461722f73616d706c6572732d67656e657261746f722e7376673f6d6f64653d6461726b)

Installation
------------

[](#installation)

First you need to download and run [Easy Diffusion](https://github.com/easydiffusion/easydiffusion).

Next, make sure you have [Composer](https://getcomposer.org), [PHP 8.1](https://www.php.net) or higher and [Git](https://git-scm.com/downloads) installed on your computer.

Next, you may create a new `Samplers Generator` project via the Composer `create-project` command:

```
composer create-project andrey-helldar/easy-diffusion-ui-samplers-generator easy-diffusion-ui-samplers-generator
```

Or you can download this repository:

```
git clone git@github.com:andrey-helldar/easy-diffusion-ui-samplers-generator.git
```

Next, go to the project folder and install the dependencies:

```
cd ./easy-diffusion-ui-samplers-generator

composer install
```

Configuration
-------------

[](#configuration)

The project has few static settings - these are the number of steps for generating images and sizes.

Configuration files are located in the [config](config) folder.

Usage
-----

[](#usage)

> First you need to run the neural network python script See more:

### Sampler generation for all available models

[](#sampler-generation-for-all-available-models)

To do this, you need to call the `bin/sampler models` console command, passing it the required parameter `--prompt`.

For example:

```
bin/sampler models --prompt "a photograph of an astronaut riding a horse"
```

If you want to generate a sampler table for a previously generated image, then you need to also pass the `--seed` parameter with this value when invoking the console command.

For example:

```
bin/sampler models --prompt "a photograph of an astronaut riding a horse" --seed 2699388
```

#### Available options

[](#available-options)

- `---prompt` - Query string for image generation. It's a string.
- `--negative-prompt` - Exclusion words for query generation. It's a string.
- `--tags` - Image generation modifiers. It's array.
- `--fix-faces` - Enable fix incorrect faces and eyes via GFPGANv1.3. It's a boolean.
- `--path` - Path to save the generated samples. By default, in the `./build` subfolder inside the current directory.
- `--seed` - Seed ID of an early generated image.
- `--output-format` - Sets the file export format: jpeg or png. By default, jpeg.
- `--output-quality` - Specifies the percentage quality of the output image. By default, 75.

### Sampler generation for one model

[](#sampler-generation-for-one-model)

To do this, you need to call the `bin/sampler model` console command, passing it the required parameters `--prompt` and `--model`.

For example:

```
bin/sampler model --prompt "a photograph of an astronaut riding a horse" --model "sd-v1-4"
```

If you want to generate a sampler table for a previously generated image, then you need to also pass the `--seed` parameter with this value when invoking the console command.

For example:

```
bin/sampler models --prompt "a photograph of an astronaut riding a horse" --model "sd-v1-4" --seed 2699388
```

#### Available options

[](#available-options-1)

- `---model` - Model for generating samples. It's a string.
- `---prompt` - Query string for image generation. It's a string.
- `--negative-prompt` - Exclusion words for query generation. It's a string.
- `--tags` - Image generation modifiers. It's array.
- `--fix-faces` - Enable fix incorrect faces and eyes via GFPGANv1.3. It's a boolean.
- `--path` - Path to save the generated samples. By default, in the `./build` subfolder inside the current directory.
- `--seed` - Seed ID of an early generated image.
- `--output-format` - Sets the file export format: jpeg or png. By default, jpeg.
- `--output-quality` - Specifies the percentage quality of the output image. By default, 75.

### Sampler generation for all models based on configuration files

[](#sampler-generation-for-all-models-based-on-configuration-files)

You can also copy configurations from the Stable Diffusion UI web interface to the clipboard, after which, using any file editor, you can save these configurations to any folder on your computer.

[![copy button](.github/images/copy-button.png)](.github/images/copy-button.png)

After you save as many configuration files as you need in a folder, you can call the `bin/samplers settings --path` command, passing it the path to that folder:

```
bin/samplers settings --path /home/user/samplers

# or for Windows
bin/samplers settings --path "D:\exports\Samplers"
```

When the command is run, the script will find all json files in the root of the specified folder (without recursive search), check them for correct filling (incorrect files will be skipped, there will be no errors), and start generating samplers for all models available to the neural network for each of the files.

The sampler table will be generated by the Seed ID taken from the configuration file.

For example, output info:

```
INFO: Run: woman.json

INFO aloeVeraSSimpMaker3K_simpMaker3K1

20/20 [============================] 100%

  Storing ......................................... 113ms DONE
  Elapsed Time ........................... 2 minute 47 seconds

INFO sd-v1-4

20/20 [============================] 100%

  Storing ......................................... 113ms DONE
  Elapsed Time ............................ 3 minute 7 seconds

INFO: Run: man.json

INFO aloeVeraSSimpMaker3K_simpMaker3K1

20/20 [============================] 100%

  Storing ......................................... 113ms DONE
  Elapsed Time ........................... 2 minute 12 seconds

INFO sd-v1-4

20/20 [============================] 100%

  Storing ......................................... 113ms DONE
  Elapsed Time ........................... 3 minute 12 seconds

Output Path .......... /home/user/samplers/2022-12-26_21-06-32
Elapsed Time ........................... 11 minutes 18 seconds

```

The target folder will contain the collected sampler files (jpeg or png), as well as a set of configurations for them.

For example:

```
/home/user/samplers/woman.json
/home/user/samplers/2022-12-26_21-06-32/woman/aloeVeraSSimpMaker3K_simpMaker3K1__vae-ft-mse-840000-ema-pruned.png
/home/user/samplers/2022-12-26_21-06-32/woman/aloeVeraSSimpMaker3K_simpMaker3K1__vae-ft-mse-840000-ema-pruned.json
/home/user/samplers/2022-12-26_21-06-32/woman/sd-v1-4__vae-ft-mse-840000-ema-pruned.png
/home/user/samplers/2022-12-26_21-06-32/woman/sd-v1-4__vae-ft-mse-840000-ema-pruned.json

/home/user/samplers/man.json
/home/user/samplers/2022-12-26_21-06-32/man/aloeVeraSSimpMaker3K_simpMaker3K1__vae-ft-mse-840000-ema-pruned.png
/home/user/samplers/2022-12-26_21-06-32/man/aloeVeraSSimpMaker3K_simpMaker3K1__vae-ft-mse-840000-ema-pruned.json
/home/user/samplers/2022-12-26_21-06-32/man/sd-v1-4__vae-ft-mse-840000-ema-pruned.png
/home/user/samplers/2022-12-26_21-06-32/man/sd-v1-4__vae-ft-mse-840000-ema-pruned.json

```

#### Available options

[](#available-options-2)

- `--path` - Path to save the generated samples. By default, in the `./build` subfolder inside the current directory.
- `--output-format` - Sets the file export format: jpeg or png. By default, jpeg.
- `--output-quality` - Specifies the percentage quality of the output image. By default, 75.

Example
-------

[](#example)

### Source

[](#source)

[![source image](.github/images/source.png)](.github/images/source.png)

### Sampler

[](#sampler)

[![sampler](.github/images/sampler.png)](.github/images/sampler.png)

### Config

[](#config)

> The last used configuration for the model is saved to the file

```
{
    "numOutputsTotal": 1,
    "seed": 2699388,
    "reqBody": {
        "prompt": "An imposing and highly ornamented (fantasy castle) against the backdrop of space, (((Realistic))), ((Creature Design)), (Beautiful Lighting), (HD), Fantasy, Film Grain, Golden Hour, Highly Detailed, Landscape, Octane Render",
        "negative_prompt": "",
        "active_tags": [
            "(((Realistic)))",
            "((Creature Design))",
            "(Beautiful Lighting)",
            "(HD)",
            "Fantasy",
            "Film Grain",
            "Golden Hour",
            "Highly Detailed",
            "Landscape",
            "Octane Render"
        ],
        "width": 512,
        "height": 512,
        "seed": 2699388,
        "num_inference_steps": 20,
        "guidance_scale": 7.5,
        "use_face_correction": false,
        "sampler": "plms",
        "use_stable_diffusion_model": "aloeVeraSSimpMaker3K_simpMaker3K1",
        "use_vae_model": "vae-ft-mse-840000-ema-pruned",
        "use_hypernetwork_model": "",
        "hypernetwork_strength": 1,
        "num_outputs": 1,
        "stream_image_progress": false,
        "show_only_filtered_image": true,
        "output_format": "png"
    }
}
```

FAQ
---

[](#faq)

Q: Why is it not written in python?

A: I was interested in writing a pet project in one evening and I don't know python 😁

---

Q: What models do you use?

A: For various purposes, I use the following models:

- Models:
    -
        -  (version: 3)
        -  (version: 1)
        -  (version: 1)
        -  (version: 1)
        -  (version: 3)
        -  (version: 1)
    -
        -
- VAE
    -
    -

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~42 days

Total

7

Last Release

1060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b77790e612f1c9beed1e1533e36eba4954fbd6da2a5c9f71e845cd0f5465f0ad?d=identicon)[Helldar](/maintainers/Helldar)

---

Top Contributors

[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (86 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")

---

Tags

aistable diffusionneural networksstable-diffusion-uieasy-diffusioneasy-diffusion-ui

### Embed Badge

![Health badge](/badges/andrey-helldar-stable-diffusion-ui-samplers-generator/health.svg)

```
[![Health](https://phpackages.com/badges/andrey-helldar-stable-diffusion-ui-samplers-generator/health.svg)](https://phpackages.com/packages/andrey-helldar-stable-diffusion-ui-samplers-generator)
```

###  Alternatives

[ashallendesign/favicon-fetcher

A Laravel package for fetching website's favicons.

190272.4k3](/packages/ashallendesign-favicon-fetcher)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
