Skip to content

Commit

Permalink
More Subprocess Refactoring and Cancel Generate Operator (#274)
Browse files Browse the repository at this point in the history
* subprocess refactoring

main() was getting cramped so moved clutter to a new Backend class. Intents get their own generator methods that also allow for lazy loading their dependencies and models.

* fix non-automatic precision always reloads model

* cancel generator operator

* small changes

* prevent stopped action from being sent when it shouldn't

* move property resets out of if timer block

* clear event before waiting

* block operators while subprocess is in use
  • Loading branch information
NullSenseStudio committed Oct 15, 2022
1 parent dac3b4a commit e3a749b
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 259 deletions.
3 changes: 2 additions & 1 deletion classes.py
@@ -1,6 +1,6 @@
from .operators.install_dependencies import InstallDependencies
from .operators.open_latest_version import OpenLatestVersion
from .operators.dream_texture import DreamTexture, ReleaseGenerator, HeadlessDreamTexture
from .operators.dream_texture import DreamTexture, ReleaseGenerator, HeadlessDreamTexture, CancelGenerator
from .operators.view_history import SCENE_UL_HistoryList, RecallHistoryEntry, ClearHistory, RemoveHistorySelection, ExportHistorySelection, ImportPromptFile
from .operators.inpaint_area_brush import InpaintAreaStroke
from .operators.upscale import Upscale
Expand All @@ -14,6 +14,7 @@

DreamTexture,
ReleaseGenerator,
CancelGenerator,
OpenLatestVersion,
SCENE_UL_HistoryList,
RecallHistoryEntry,
Expand Down

0 comments on commit e3a749b

Please sign in to comment.