Skip to content

[Bug] Converting BiRefNet-HRSOD.pth failed #12

@xiazhesheng

Description

@xiazhesheng

Hello, this is a great job to help me using quantitized birefnet easier.

In my using cases, the BiRefNet-HRSOD produces better results than general BiRefNet models. So I tried to convert BiRefNet-HRSOD.pth into .gguf model using command "uv run scripts/convert.py birefnet BiRefNet-HRSOD_DHU-epoch_115.pth". However, it failed to convert.

This is the error report.

~/vision.cpp$ uv run scripts/convert.py birefnet BiRefNet-HRSOD_DHU-epoch_115.pth
Converting birefnet
* input: BiRefNet-HRSOD_DHU-epoch_115.pth
* output: models/BiRefNet-HRSOD_DHU-epoch_115.gguf
* birefnet.tensor_data_layout = whcn
Error: Error while deserializing header: header too large

Does it mean that the .pth file size is too large to convert? And what should I do to convert it successfully? Thanks a lot if you could help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions