Coder Social home page Coder Social logo

Serializing Models about pico HOT 5 OPEN

patricksnape avatar patricksnape commented on August 19, 2024
Serializing Models

from pico.

Comments (5)

nzjrs avatar nzjrs commented on August 19, 2024 1

Was there any progress on this?

from pico.

nenadmarkus avatar nenadmarkus commented on August 19, 2024

Hi,

I'd be glad to help.

Please contact me at [email protected]

Nenad

On Thu, May 14, 2015 at 4:02 PM, Patrick Snape [email protected]
wrote:

Hi,

I'm part of a small team at Imperial College London called Menpo, and we
are focusing on creating some tools in Python that make certain areas of
computer vision easier. I've read your paper about object detection and
obviously found the Pico repository via that.

I have wrapped Pico in Cython for use in Python over at cypico
https://github.com/menpo/cypico and I'm currently using a forked
version of Pico that correctly compiles in Visual Studio. I was wondering
if you would be interested in doing some collaboration so that we might
make training and serializing Pico models more friendly from within Python.

Is this something you might be interested in?

Cheers,

Patrick and The Menpo Team


Reply to this email directly or view it on GitHub
#5.

from pico.

patricksnape avatar patricksnape commented on August 19, 2024

I emailed you, but for the sake of public history, here's roughly what I said:

There are two issues for me at the moment:

  • How to do training from Python in an informative and useful way.
  • How to serialize and deserialize models at runtime.

I think the second problem can be solved if we changed how Pico builds its models to a method that involves proper deserialization. Then it would be much simpler to load different Pico models (perhaps for different objects) at runtime, rather than requiring them to be pre-compiled. Perhaps something like Google ProtoBuf/Cap'n'proto or Boost.serialize?

For training, I'm afraid I don't know at all. Do you think it would be simple to make is so you can just pass a set of images (uint8 buffers) for positive and negative and it will (maybe days later) drop a model out?

from pico.

nenadmarkus avatar nenadmarkus commented on August 19, 2024

Let us talk about the easier issue first: How to serialize and deserialize models at runtime.

I can write an interface to the detector which would let you pass the classification cascade itself instead of a pointer to the function which performs classification.

I think that would satisfy your needs. Please provide further input.

from pico.

patricksnape avatar patricksnape commented on August 19, 2024

Yes I think that is a good start. The main question is just what the format of that model is going to be - will you make some form of struct that gets passed into the function? If so, we just need to decide what is the best method to actually efficiently serialize the model to disk and read it back in again. Especially since this method should obviously be portable and cross-platform and ideally simple to perform through a Python-C bridge.

from pico.

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.