Skip to content

Commit

Permalink
preset tweakin, better dream descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aayars committed Aug 10, 2023
1 parent ddab6d7 commit 04b6c60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions noisemaker/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,14 +899,15 @@
"conference": {
"layers": ["value-mask", "sobel", "maybe-rotate", "maybe-invert", "grain"],
"settings": lambda: {
"freq": 4 * random.randint(6, 12),
"mask": mask.halftone,
"mask_repeat": random.randint(4, 12),
"spline_order": interp.cosine,
},
"ai": {
"prompt": "design motif, industry conference, truchet pattern",
"image_strength": 0.925,
"image_strength": 0.5,
"cfg_scale": 25,
"model": "stable-diffusion-xl-1024-v1-0",
}
},

Expand Down Expand Up @@ -3962,7 +3963,10 @@
"freq": [2, 2],
},
"ai": {
"prompt": "soft blended colors, four-way symmetry, natural symmetry, kaleidoscope"
"prompt": "soft blended colors, four-way symmetry, natural symmetry, kaleidoscope",
"image_strength": .125,
"cfg_scale": 20,
"model": "stable-diffusion-xl-1024-v1-0",
}
},

Expand Down
2 changes: 2 additions & 0 deletions noisemaker/scripts/noisemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,11 @@ def dream(width, height, seed, filename):
util.save(tensor, tmp_filename)

tensor = ai.apply(settings, seed, tmp_filename, None)
description = ai.describe(name, prompt, tmp_filename)

print(name)
print(prompt)
print(description)

preset = EFFECT_PRESETS["lens"]
tensor = preset.render(seed=seed, tensor=tensor, shape=shape, filename=filename)

0 comments on commit 04b6c60

Please sign in to comment.