Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Name is the backend name.
Name = "diffusers"
)
Variables ¶
Functions ¶
func ExtractPythonError ¶
ExtractPythonError attempts to extract a meaningful error message from Python output. It looks for common error patterns and returns a cleaner, more user-friendly message. If no recognizable pattern is found, it returns the original output.
func New ¶
func New(log logging.Logger, modelManager *models.Manager, serverLog logging.Logger, conf *Config, customPythonPath string) (inference.Backend, error)
New creates a new diffusers-based backend for image generation. customPythonPath is an optional path to a custom python3 binary; if empty, the default path is used.
Types ¶
Click to show internal directories.
Click to hide internal directories.