default temperature 0.4
Browse files- README.md +1 -1
- config.json +1 -1
- smalt/pipeline.py +1 -1
README.md
CHANGED
|
@@ -72,7 +72,7 @@ Several prompts in one batch: `pipe(["red key", "silver sword", "treasure chest"
|
|
| 72 |
|---|---|---|
|
| 73 |
| `steps` | 16 | decoding steps; 8 is faster, 24–32 a little cleaner |
|
| 74 |
| `guidance` | 3.0 | how strictly the prompt is followed; 2–5 is the useful range |
|
| 75 |
-
| `temperature` | 0.
|
| 76 |
| `seed` | random | same seed + same settings = same sprites |
|
| 77 |
|
| 78 |
**Inpainting**: pass a canvas of palette ids and a mask of the pixels to keep.
|
|
|
|
| 72 |
|---|---|---|
|
| 73 |
| `steps` | 16 | decoding steps; 8 is faster, 24–32 a little cleaner |
|
| 74 |
| `guidance` | 3.0 | how strictly the prompt is followed; 2–5 is the useful range |
|
| 75 |
+
| `temperature` | 0.4 | lower = cleaner and more typical, higher = more variety (above ~1.0 adds stray pixels) |
|
| 76 |
| `seed` | random | same seed + same settings = same sprites |
|
| 77 |
|
| 78 |
**Inpainting**: pass a canvas of palette ids and a mask of the pixels to keep.
|
config.json
CHANGED
|
@@ -19,6 +19,6 @@
|
|
| 19 |
"defaults": {
|
| 20 |
"steps": 16,
|
| 21 |
"guidance": 3.0,
|
| 22 |
-
"temperature": 0.
|
| 23 |
}
|
| 24 |
}
|
|
|
|
| 19 |
"defaults": {
|
| 20 |
"steps": 16,
|
| 21 |
"guidance": 3.0,
|
| 22 |
+
"temperature": 0.4
|
| 23 |
}
|
| 24 |
}
|
smalt/pipeline.py
CHANGED
|
@@ -16,7 +16,7 @@ import torch
|
|
| 16 |
from .model import ModelCfg, Smalt
|
| 17 |
from .sampler import generate, sample_steps
|
| 18 |
|
| 19 |
-
DEFAULTS = {"steps": 16, "guidance": 3.0, "temperature": 0.
|
| 20 |
|
| 21 |
|
| 22 |
class SmaltPipeline:
|
|
|
|
| 16 |
from .model import ModelCfg, Smalt
|
| 17 |
from .sampler import generate, sample_steps
|
| 18 |
|
| 19 |
+
DEFAULTS = {"steps": 16, "guidance": 3.0, "temperature": 0.4}
|
| 20 |
|
| 21 |
|
| 22 |
class SmaltPipeline:
|