Giter Site home page Giter Site logo

Comments (2)

esgomezm avatar esgomezm commented on June 16, 2024

I'm a bit lost. Is this something to discuss during the hackathon?

from core-bioimage-io-python.

FynnBe avatar FynnBe commented on June 16, 2024

I'm a bit lost. Is this something to discuss during the hackathon?

I think so. I'll collect some insights here and if anyone has experience on this please share here so we can have a more informed discussion during the hackathon.

What I found out today about tenforflow: (edit: takes potato out of mouth.. ehem, tensorflow)

For tensorflow it looks a bit like an unsolved problem (e.g. tensorflow/tensorflow#36465 (comment))
Some people take desperate measures that we definitely can't: kill all nvidia processes on gpu
💥 tensorflow/tensorflow#36465 (comment)

Theoretically tf.Session is the solution:
https://github.com/tensorflow/docs/blob/r1.14/site/en/api_docs/python/tf/Session.md#tfsession
There were problems with that related to nvidia drivers (old issue): tensorflow/tensorflow#1727 (comment)

I'll give tf.Session a try and share the code snippet here so we can try on several machienes, etc...

One way to circumvent all of that is to use multiprocessing (would work for any framework):

  • e.g. with shared numpy array to get the data back from the inference process: https://stackoverflow.com/a/7908612/17492107 @oeway is there not a way to make this integrated mp approach work on a triton server? no additional software would be needed, we could encapsulate it in the ModelAdapter base (within bioimageio.core's internals)

from core-bioimage-io-python.

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.