GithubHelp home page GithubHelp logo

Multiple images at input about inferoxy HOT 3 OPEN

VladVin avatar VladVin commented on July 22, 2024
Multiple images at input

from inferoxy.

Comments (3)

wselfjes avatar wselfjes commented on July 22, 2024

Actually, there is a possibility to send multiple views images as an input.
I wrote a simple model that accepts multiple image and return embedding and it is working
https://gist.github.com/wselfjes/379a604f67d662b775021390b36519c1

from inferoxy.

VladVin avatar VladVin commented on July 22, 2024

Thank you for the sample. Yes, I understand that we can stack images into one tensor, but the problem is in different sizes of images that might come (btw, this was mentioned in the comment above). For example, different photos of the same product.

Currently I see two options:

  1. Resize image to common size which is not good because it assumes the middleware that works with image tensors. Also, this might reduce the quality of a model because usually there's a different preprocessing applied in each model to the original image.
  2. Pass tensors as a meta parameter. This looks like a hack and I think it would be better to support multiple images per item by design

from inferoxy.

wselfjes avatar wselfjes commented on July 22, 2024

Another solution is VID2IMG mode. You can build the stateful model that wait for the flag β€œend” and then performs inference.

from inferoxy.

Related Issues (10)

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.