Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Name is the backend name.
Name = "diffusers"
)
Variables ¶
View Source
var ( ErrNoDDUFFile = errors.New("no DDUF file found in model bundle") // ErrPlatformNotSupported indicates the platform is not supported. ErrPlatformNotSupported = errors.New("diffusers is not available on this platform") )
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 installation is used.
Types ¶
Click to show internal directories.
Click to hide internal directories.