This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-21
Channels
- # announcements (1)
- # babashka (13)
- # beginners (85)
- # calva (1)
- # chlorine-clover (16)
- # cider (30)
- # clj-kondo (2)
- # clj-on-windows (5)
- # cljdoc (3)
- # cljs-dev (12)
- # cljsrn (19)
- # clojure (88)
- # clojure-europe (39)
- # clojure-nl (7)
- # clojure-sweden (3)
- # clojure-uk (8)
- # clojurescript (35)
- # core-async (3)
- # data-science (2)
- # datomic (17)
- # defnpodcast (3)
- # deps-new (1)
- # editors (18)
- # emacs (4)
- # events (1)
- # expound (1)
- # figwheel-main (8)
- # fulcro (9)
- # graalvm (2)
- # graalvm-mobile (11)
- # helix (44)
- # jobs (7)
- # lsp (95)
- # luminus (9)
- # malli (6)
- # meander (4)
- # membrane (2)
- # missionary (13)
- # off-topic (98)
- # pathom (2)
- # polylith (4)
- # portal (3)
- # re-frame (6)
- # reagent (27)
- # reitit (3)
- # releases (3)
- # remote-jobs (6)
- # rewrite-clj (1)
- # rum (2)
- # sci (3)
- # shadow-cljs (7)
- # sql (66)
- # tools-deps (80)
- # vim (5)
- # xtdb (3)
Hello, Uber beginner here. I am not sure if this is the best place to ask but here it goes... My friend created some AI/Computer Vision models as a joke and he would like to deploy them and be accessible outside of his computer. I thought this would be fun opportunity for me to do that. I am thinking about making them accessible via API. His project is done in Python and py torch i believe. So my question is are models language agnostic? Can i setup Clojure webapp that just serves those models or i need to use https://github.com/clj-python/libpython-clj for example to do that? Would it just be easier if i create this webapp in Python instead of Clojure? Are there any resources/guides for this being done in Clojure can it be done at all?
There are formats that allow you to export from PyTorch so that a trained model can be run in a given alternative runtime: https://pytorch.org/tutorials/advanced/super_resolution_with_onnxruntime.html If you were to go down such a route then you could use the Java API for the ONNX runtime: https://www.onnxruntime.ai/docs/reference/api/java-api.html But overall I think the answer to your second to last question might still be "yes", because it adds fewer moving parts to your stack - but if it's just a hobby project it could be a good opportunity to get familiar with the Clojure DS/ML/DL ecosystem