Skip to content

Implement bicubic interpolation #74

Open

Description

@monatis

Currently clip.cpp uses linear interpolation in image preprocessing. The original implementation uses the bicubic interpolation from Pillow. It needs refactoring from Pillow https://github.com/python-pillow/Pillow/blob/main/src/libImaging/Resample.c#L46-L62

Activity

  1. lithdew commented on Jul 1, 2024

    @lithdew

    An implementation of bicubic interpolation is available inside llama.cpp.

    https://github.com/ggerganov/llama.cpp/blob/master/examples/llava/clip.cpp#L1431

  2. monatis commented on Jul 1, 2024

    @monatis
    OwnerAuthor

    Yes, I upstreamed clip.cpp to llama.cpp for LLaVA, and now there's some functionality that needs to be downstreamed from llama.cpp back to this repo. Currently I don't have enough time to maintain it, though. Maybe next month.

  3. lithdew commented on Jul 1, 2024

    @lithdew

    I'm looking to use clip.cpp in a project soon - would you mind if I make a PR that brings some of the features in llama.cpp into clip.cpp?

  4. monatis commented on Jul 1, 2024

    @monatis
    OwnerAuthor

    @lithdew That would be awesome. And feel free to ping me if you need to ask anything about the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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