forked from carson-katri/dream-textures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclasses.py
57 lines (50 loc) · 2.17 KB
/
classes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from .operators.install_dependencies import InstallDependencies
from .operators.open_latest_version import OpenLatestVersion
from .operators.dream_texture import DreamTexture, ReleaseGenerator, CancelGenerator
from .operators.view_history import SCENE_UL_HistoryList, RecallHistoryEntry, ClearHistory, RemoveHistorySelection, ExportHistorySelection, ImportPromptFile
from .operators.inpaint_area_brush import InpaintAreaBrushActivated
from .operators.upscale import Upscale
from .operators.project import ProjectDreamTexture, dream_texture_projection_panels
from .property_groups.dream_prompt import DreamPrompt
from .ui.panels import dream_texture, history, upscaling, render_properties
from .preferences import OpenHuggingFace, OpenContributors, StableDiffusionPreferences, OpenDreamStudio, ImportWeights, Model, ModelSearch, InstallModel, PREFERENCES_UL_ModelList
from .ui.presets import DREAM_PT_AdvancedPresets, DREAM_MT_AdvancedPresets, AddAdvancedPreset, RestoreDefaultPresets
CLASSES = (
*render_properties.render_properties_panels(),
DreamTexture,
ReleaseGenerator,
CancelGenerator,
OpenLatestVersion,
SCENE_UL_HistoryList,
RecallHistoryEntry,
ClearHistory,
RemoveHistorySelection,
ExportHistorySelection,
ImportPromptFile,
InpaintAreaBrushActivated,
Upscale,
ProjectDreamTexture,
DREAM_PT_AdvancedPresets,
DREAM_MT_AdvancedPresets,
AddAdvancedPreset,
# The order these are registered in matters
*dream_texture.dream_texture_panels(),
*upscaling.upscaling_panels(),
*history.history_panels(),
*dream_texture_projection_panels(),
dream_texture.OpenClipSegDownload,
dream_texture.OpenClipSegWeightsDirectory,
)
PREFERENCE_CLASSES = (
PREFERENCES_UL_ModelList,
ModelSearch,
InstallModel,
Model,
DreamPrompt,
InstallDependencies,
OpenHuggingFace,
ImportWeights,
OpenContributors,
RestoreDefaultPresets,
OpenDreamStudio,
StableDiffusionPreferences)