Skip to content

Support HuggingFace Segformer model #254

@oluwatimilehin

Description

@oluwatimilehin

Hello,

I have written a simple program to run some vision models from HuggingFace in this gist: https://gist.github.com/oluwatimilehin/db204bcab6eb7531173453a2e4ed7e8e.

However, I cannot run the segformer model using python vision_models.py -m segformer -b 1, as I get a NotImplementedError: Not supporting format message.

I've tracked the error down to this line:

raise NotImplementedError("Not supporting format")

Which gets invoked when it receives an arg (d1//128) with type FloorDiv.

I'm not flagging this as a bug, as you document that it's unsupported, but I'm creating an issue to track this just for awareness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions