Skip to content

prunaai/z-image-turbo-img2img LoRA fails (Path vs list mismatch) #2918

@designInLab

Description

@designInLab

Hi,

I’m encountering a reproducible issue with:

Model: prunaai/z-image-turbo-img2img
Version: 5c958e90e0f904240629ee35c69196e3bd790b5528c0696705ebdb1656871dd8

Problem

LoRA input appears broken due to mismatch between input schema and runtime handling.

Reproduction

Working request (no LoRA):
• works correctly

Failing request (with LoRA):

{
  "version": "5c958e90e0f904240629ee35c69196e3bd790b5528c0696705ebdb1656871dd8",
  "input": {
    "image": "https://replicate.delivery/pbxt/OGd3EDJTeHE5F0VroRhklsMmkc9oZa4FJP9VX21bIfYgGK1P/z-image-turbo-i2i-input.png",
    "prompt": "test",
    "lora_weights": "https://huggingface.co/indesignai/z-image_lora/resolve/main/30_indrive_milana_z_image.safetensors",
    "lora_scales": 1.0
  }
}

Error
TypeError: object of type 'Path' has no len()

Traceback:
if len(lora_weights_list) != len(lora_scales_list):

Notes
• API validation only accepts single LoRA (string + number)
• runtime expects list-like inputs → crash

This makes LoRA unusable for this model version.

Could you confirm if this is a known issue or route this to the model owner?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions