Implement image generation fallback chain: try torch/diffusers first, then sd.cpp
- Reordered the image generation backend priority to try torch/diffusers first - If torch/diffusers fails (ImportError or other error), fallback to stable-diffusion-cpp-python - If both backends fail, return a helpful error message with installation instructions - Added dynamic loading of sd.cpp model if not pre-loaded
Showing
This diff is collapsed.
Please
register
or
sign in
to comment