Skip to content

Conversation

@lstein
Copy link
Collaborator

@lstein lstein commented Sep 13, 2022

  • Moved handling of the models.yaml configuration file into the Generate() object. This simplifies the logic in dream.py and makes the symbolic model naming system available to other scripts that use generate.py
  • Removed multiple dangling variables in generate.py that were either never used, or were redundant.
  • Simplified the handling of keyboard interrupts between dream.py and generate.py
  • Tweaked the output of ddim.py a bit to make progress reporting more attractive.
  • Moved scripts/inpaint.py into scripts/orig_scripts/inpaint.py in order to discourage people from using this nonfunctional script.

* config file path (models.yaml) is parsed inside Generate() to simplify
API

* Better handling of keyboard interrupts in file loading mode vs
interactive

* Removed oodles of unused variables.
@lstein lstein merged commit e6179af into development Sep 14, 2022
@lstein lstein deleted the generate-refactor branch September 17, 2022 11:53
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this pull request Sep 19, 2022
* revert inadvertent change of conda env name (invoke-ai#528)

* Refactor generate.py and dream.py

* config file path (models.yaml) is parsed inside Generate() to simplify
API

* Better handling of keyboard interrupts in file loading mode vs
interactive

* Removed oodles of unused variables.

* move nonfunctional inpainting out of the scripts directory

* fix ugly ddim tqdm formatting
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this pull request Sep 19, 2022
* revert inadvertent change of conda env name (invoke-ai#528)

* Refactor generate.py and dream.py

* config file path (models.yaml) is parsed inside Generate() to simplify
API

* Better handling of keyboard interrupts in file loading mode vs
interactive

* Removed oodles of unused variables.

* move nonfunctional inpainting out of the scripts directory

* fix ugly ddim tqdm formatting
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this pull request Sep 21, 2022
* revert inadvertent change of conda env name (invoke-ai#528)

* Refactor generate.py and dream.py

* config file path (models.yaml) is parsed inside Generate() to simplify
API

* Better handling of keyboard interrupts in file loading mode vs
interactive

* Removed oodles of unused variables.

* move nonfunctional inpainting out of the scripts directory

* fix ugly ddim tqdm formatting
austinbrown34 pushed a commit to cognidesign/InvokeAI that referenced this pull request Dec 30, 2022
* revert inadvertent change of conda env name (invoke-ai#528)

* Refactor generate.py and dream.py

* config file path (models.yaml) is parsed inside Generate() to simplify
API

* Better handling of keyboard interrupts in file loading mode vs
interactive

* Removed oodles of unused variables.

* move nonfunctional inpainting out of the scripts directory

* fix ugly ddim tqdm formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants