Replies: 3 comments 6 replies
-
had to add class LivePreviewArea() from original version to prevent import error in custom_workflow.py. Also, image preview size does not seem to end up adjustable (doesn't change size with overall widget) |
Beta Was this translation helpful? Give feedback.
-
I was aware that the plugin update overwrites the code. I tried using the code you pasted above and the plug-in works, but the image in the window does not resize with the window; it stays the same size. But that’s okay, I don’t really need it to resize. |
Beta Was this translation helpful? Give feedback.
-
for the error: which does not allow the sampler to be run with LCM. chatgpt suggested this solution and it works: `class ModelSamplingDiscreteDistilled(comfy.model_sampling.ModelSamplingDiscrete):
` from file: Users\AppData\Roaming\krita\ai_diffusion\server\ComfyUI\comfy_extras\nodes_model_advanced.py |
Beta Was this translation helpful? Give feedback.
-
I set the progress bar to "live" and the preview image is adjustable.:
\USER\AppData\Roaming\krita\pykrita\ai_diffusion\ui\live.py
`from future import annotations
from PyQt5.QtCore import QMetaObject, Qt
from PyQt5.QtWidgets import (
QWidget,
QVBoxLayout,
QHBoxLayout,
QToolButton,
QLabel,
QSpinBox,
QSizePolicy,
QProgressBar,
)
from ..properties import Binding, bind, Bind
from ..image import Extent, Image
from ..model import Model
from ..localization import translate as _
from ..root import root
from .control import ControlListWidget
from .region import ActiveRegionWidget, PromptHeader
from .widget import WorkspaceSelectWidget, StyleSelectWidget, StrengthWidget
from .widget import create_wide_tool_button
from . import theme
class LiveWidget(QWidget):
_play_icon = theme.icon("play")
_pause_icon = theme.icon("pause")
`
Beta Was this translation helpful? Give feedback.
All reactions