Code Monkey home page Code Monkey logo

Comments (4)

monatis avatar monatis commented on September 22, 2024 2

Thanks @MotzWanted. Currently I have limited time to provide support for this library, but I want to rewrite the Python bindings for a faster inference very soon. I'll test and verify it on different platforms then.

from clip.cpp.

monatis avatar monatis commented on September 22, 2024 1

During the first implementation of Python bindings, signatures of functions for batch processing were not compatible with ctypes --they were accepting a std::vector instead of a custom struct. I refactored it in the C/C++ code later on but didn't implement on the Python side. This will be fixed in the upcoming implementation.

from clip.cpp.

MotzWanted avatar MotzWanted commented on September 22, 2024

I've solved the issue. I verify symbol export in the compiled library by using the nm tool on macOS:

nm -gU /path/to/libclip.dylib

I look for make_clip_image_u8 and make_clip_image_f32 in the output, and find similar functions named _clip_image_u8_make and _clip_image_f32_make. I change the naming in line 202 and line 206 which solves the AttributeError.

from clip.cpp.

MotzWanted avatar MotzWanted commented on September 22, 2024

No worries @monatis. Let me know if I can be of any help to you... Btw. can you tell me why you have marked out clip_image_batch_encode?

from clip.cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.