• Your Name's avatar
    Fix black image: use --image-precision from CLI args instead of hardcoded float16 · 9b3126d7
    Your Name authored
    Root cause: The refactored code was hardcoding torch.float16 for CUDA,
    ignoring the --image-precision bf16 CLI argument. The Z-Image-Turbo model
    requires bfloat16 precision - using float16 causes NaN values in the
    image processor, resulting in all-black images.
    
    Also restored the original model loading logic with:
    - GGUF model detection (skip diffusers for GGUF)
    - OOM retry with progressive memory optimization
    - use_safetensors=True
    - Sequential CPU offload support
    9b3126d7
Name
Last commit
Last update
.vscode Loading commit data...
codai Loading commit data...
.gitignore Loading commit data...
LICENSE.md Loading commit data...
README.md Loading commit data...
build.sh Loading commit data...
coder Loading commit data...
coderai Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...