Commit 7f5168c2 authored by Your Name's avatar Your Name

remove --image-vulkan-device - not supported by stable-diffusion-cpp

parent f4034d4c
...@@ -4270,12 +4270,7 @@ def parse_args(): ...@@ -4270,12 +4270,7 @@ def parse_args():
default=0, default=0,
help="Vulkan GPU device ID to use for Whisper audio transcription (default: 0). Only used when using Vulkan backend.", help="Vulkan GPU device ID to use for Whisper audio transcription (default: 0). Only used when using Vulkan backend.",
) )
parser.add_argument(
"--image-vulkan-device",
type=int,
default=None,
help="Vulkan GPU device ID to use for image generation models (default: same as --vulkan-device). Use --vulkan-list-devices to see available devices",
)
parser.add_argument( parser.add_argument(
"--whisper-cpp", "--whisper-cpp",
type=str, type=str,
...@@ -4755,10 +4750,6 @@ def main(): ...@@ -4755,10 +4750,6 @@ def main():
print(f"llama.cpp load error: {llama_error}") print(f"llama.cpp load error: {llama_error}")
print(f"Trying stable-diffusion-cpp-python fallback...") print(f"Trying stable-diffusion-cpp-python fallback...")
# Try stable-diffusion-cpp-python as fallback # Try stable-diffusion-cpp-python as fallback
# Set Vulkan device BEFORE importing stable_diffusion_cpp
if args.image_vulkan_device is not None:
os.environ['GGML_VULKAN_DEVICE'] = str(args.image_vulkan_device)
print(f"Setting GGML_VULKAN_DEVICE={args.image_vulkan_device} for image model")
try: try:
from stable_diffusion_cpp import StableDiffusion from stable_diffusion_cpp import StableDiffusion
...@@ -5260,10 +5251,6 @@ def main(): ...@@ -5260,10 +5251,6 @@ def main():
print(f"llama.cpp load error: {llama_error}") print(f"llama.cpp load error: {llama_error}")
print(f"Trying stable-diffusion-cpp-python fallback...") print(f"Trying stable-diffusion-cpp-python fallback...")
# Try stable-diffusion-cpp-python as fallback # Try stable-diffusion-cpp-python as fallback
# Set Vulkan device BEFORE importing stable_diffusion_cpp
if args.image_vulkan_device is not None:
os.environ['GGML_VULKAN_DEVICE'] = str(args.image_vulkan_device)
print(f"Setting GGML_VULKAN_DEVICE={args.image_vulkan_device} for image model")
try: try:
from stable_diffusion_cpp import StableDiffusion from stable_diffusion_cpp import StableDiffusion
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment