Commit Graph

59 Commits (b611a92b4982e4fd01737d2e7264d2ea50ff8996)

Author SHA1 Message Date
Bryce 19444d8e22 fix: first frame should be the interesting one 2 years ago
Bryce Drennan e619dc2867
fix: init image strength (#225) 2 years ago
Bryce Drennan 9ee09ac842
feature: add compilation animations (#224)
- add generation/compare gifs
2 years ago
Bryce Drennan a67683d318
feature: add upscale command line function (#222) 2 years ago
Bryce Drennan 9e06013ade
feature: save gifs that show image generation process (#218) 2 years ago
Bryce Drennan 6d733ed3ff
feature: added `aimg system-info` command to help debug issues (#216) 2 years ago
Bryce f60fa880a7 feature: less visually confusing shell output 2 years ago
Bryce 248679d8de feature: image sizes can now be multiples of 8 instead of 64
from https://github.com/CompVis/stable-diffusion/issues/60#issuecomment-1240294667
2 years ago
mebelz 2571097087 fix: spelling typo
leave references to misspelled files- don't want to break any existing links
2 years ago
Bryce 00408d176f performance: use tiling for upscaling for better use of memory 2 years ago
Bryce 7c05c3aae2 feature: image edit gifs and demo-reels 2 years ago
Bryce 2a3e19f5a1 feature: 🎉 Edit Images with Instructions alone! 2 years ago
Bryce 5b56f05da7 feature: print version
- fix: default config wasn't being selected for custom models
2 years ago
Bryce 81f294216b feature: 🎉 outpainting 2 years ago
Bryce 85c084099c fix: incorrect config files being used for non-1.0 models 2 years ago
Bryce 5cc73f6087 feature: finetuning
- feature: finetuning your own image models
- feature: image prep command. crops to face or other interesting parts of photo
- fix: back-compat for hf_hub_download
- feature: add prune-ckpt command
- feature: allow specification of model config file
2 years ago
Bryce 1381c7fed4 lint: new ruff linter 2 years ago
Bryce ad0b9e8ab8 feature: tile in a single dimension ("x" or "y") 2 years ago
Bryce Drennan ccf9749df5
fix: performance improvement. disable ema (#139)
A configuration `use_ema: False` was became necessary in the newer Stable Diffusion code but was missing from the 1.5 config.
2 years ago
Paul Mestemaker 68791cf236
feat: better handling for default model names (#134)
* feat: better handling for default model names

Addresses #124
2 years ago
Bryce 2f8edc1530 feature: negative prompting
- feature: negative prompting.  `--negative-prompt` or `ImaginePrompt(..., negative_prompt="ugly, deformed, extra arms, etc")`
- feature: a default negative prompt is added to all generations. Images in SD-2.0 don't look bad anymore. Images in 1.5 look improved as well.
2 years ago
Bryce 015088507f feature/refactor/fix: better defaults. correct version in metadata
- feature: use different default steps and image sizes depending on sampler and model selceted
- fix: #110 use proper version in image metadata
- refactor: samplers all have their own class that inherits from ImageSampler
2 years ago
Maxime Mouchet 40ab571fc1 cli: show defaults and cleanup help text 2 years ago
Bryce 584e0d9df0 feature: change default sampler to k_dpmpp_2m, which is more than twice as fast 2 years ago
Bryce 94c0aeab12 feature: switch between models without restarting python instance 2 years ago
Bryce 4ba1965db8 feature: k-diff sampler img2img and masking 2 years ago
Bryce 299687645b refactor: remove unused parameter 2 years ago
Bryce df3c752eb8 refactor: consolidate logging utils 2 years ago
Bryce Drennan 31c2160e21
feature: prompt expansion (#51)
You can use `{}` to randomly pull values from lists.  A list of values separated by `|` and enclosed in `{ }` will be randomly drawn from in a non-repeating fashion. Values that are surrounded by `_ _` will pull from a phrase list of the same name.   Folders containing .txt phraselist files may be specified via
`--prompt_library_path`. The option may be specified multiple times.  Built-in categories:

      3d-term, adj-architecture, adj-beauty, adj-detailed, adj-emotion, adj-general, adj-horror, animal, art-movement,
      art-site, artist, artist-botanical, artist-surreal, aspect-ratio, bird, body-of-water, body-pose, camera-brand,
      camera-model, color, cosmic-galaxy, cosmic-nebula, cosmic-star, cosmic-term, dinosaur, eyecolor, f-stop,
      fantasy-creature, fantasy-setting, fish, flower, focal-length, food, fruit, games, gen-modifier, hair, hd,
      iso-stop, landscape-type, national-park, nationality, neg-weight, noun-beauty, noun-fantasy, noun-general,
      noun-horror, occupation, photo-term, pop-culture, pop-location, punk-style, quantity, rpg-item, scenario-desc,
      skin-color, spaceship, style, tree-species, trippy, world-heritage-site

   Examples:

   `imagine "a {red|black} dog" -r 2 --seed 0` will generate both "a red dog" and "a black dog"

   `imagine "a {_color_} dog" -r 4 --seed 0` will generate four, different colored dogs. The colors will eb pulled from an included
   phraselist of colors.

   `imagine "a {_spaceship_|_fruit_|hot air balloon}. low-poly" -r 4 --seed 0` will generate images of spaceships or fruits or a hot air balloon

   Credit to [noodle-soup-prompts](https://github.com/WASasquatch/noodle-soup-prompts/) where most, but not all, of the wordlists originate.
2 years ago
Bryce 340a90bacd feature: allow loading custom model weights at command line
Addresses #40
2 years ago
Bryce 48117bbcb1 feature: face-fidelity is now configurable
remove face-fixing from upscaled version
2 years ago
Bryce 95a8fa31a9 fix: inpainting producing blurry images
while the previous version did produce much better blending it also makes images that lack detail for some reason.

tests: Added more tests to help catch this sort of thing earlies

fix: found that median blur is really slow, so I made sure we only do it on downsampled masks.  Was taking like 3 minutes to run on the large pearl girl picture on M1

- docs: update examples
2 years ago
Bryce d563e0c7fb refactor: image version management
- mask_modify_original is now a prompt attribute
2 years ago
Bryce 2f959c7394 docs: complete sentence 2 years ago
Bryce d832f15297 fix: masking now works properly at strengths 0 and 1 2 years ago
Bryce b69072d382 fix: various bugfixes 2 years ago
Bryce b69b4c770e feature: interactive prompt
- add quiet flag
- add mask-modify-original flag
2 years ago
Bryce 38c7f88950 feature: boolean logic masks
Specify advanced text based masks using boolean logic and strength modifiers. Mask descriptions must be lowercase. Keywords uppercase.
Valid symbols: `AND`, `OR`, `NOT`, `()`, and mask strength modifier `{*1.5}` where `+` can be any of `+ - * /`. Single-character boolean
operators also work.  When writing strength modifies know that pixel values are between 0 and 1.

 - feature: apply mask edits to original files
 - feature: auto-rotate images if exif data specifies to do so
 - fix: accept mask images in command line
2 years ago
Bryce 09bc1c70e6 fix: try to address #13 BFloat16 issue
Seems to be caused by incompatible types in group_norm when we use autocast.

Patch group_norm to cast the weights to the same type as the inputs

From what I can understand all the other repos just switch to full precision instead
of addressing this.  I think this would make things slower but I'm not sure. So maybe
the patching solution I'm doing is better?

https://github.com/pytorch/pytorch/pull/81852
2 years ago
Bryce ff7fc0dab7 feature: tile mode can now be specified per-prompt 2 years ago
Bryce a46424c673 feature: img2img now supported with PLMS (instead of just DDIM)
Kinda hacky copy/pasting from ddim.  Need to cleanup
2 years ago
Bryce 4705d182d5 feature: generate captions for images
- add wip functionality for negative masks
- ci: add code linter that removes unused imports
- add instructions to install rust on osx
2 years ago
Bryce f040e3bffe feature: allow multiple additive targets for text masking targets 2 years ago
Bryce 930295d840 feature: txt2mask - automated text replacement
from https://github.com/timojl/clipseg
2 years ago
Bryce 19d0b563ac style: lint fixes. remove unused code 2 years ago
Bryce c7a822d701 feature: urls as init images
- --init-image accepts urls
- cleanup command line code
2 years ago
Bryce 23f0e2be12 fix: select ddim for img2img 2 years ago
Bryce bb665b9eb6 fix: make k-diffusion samplers deterministic
- add test for hashes on mps.  images look same on CUDA but are slightly different.
2 years ago
Bryce b4a3b8c2b3 feature: k-diffusion samplers
- improved image logging functionality. can just stick log_latent wherever you want
- improved some variable naming
- moved all the samplers together
- vendored k-diffusion library
2 years ago
Bryce 541ecb9701 feature: face enhancement and upscaling!! 2 years ago