GenericJam

GenericJam

Does Elixir Need an Image Generation Library?

I’ve been messing around with image generation models recently and thought this could be wrapped in a library or people could just use the techniques suggested in the blog post I wrote:

We can have commercial grade modern image generation without too much difficulty by running the underlying Python libraries. This is certainly lower hanging fruit than trying to port everything over to Nx and we can use Nx as the bridge to share memory via Pythonx.

I think after having a day to stew on it I’m souring on the idea of creating the library because it’s unclear anyone actually wants this. The people it will benefit can just as easily use a commercial API. Also, these models will go off the boil soon enough and then we’re stuck maintaining an obsolete library.

So for the time being I’m more than happy for people to read the above, glean the lessons I’ve gleaned, embark on some experiments if the ideas in the blog catch your fancy and copy the techniques I’ve outlined.

The source code for the demo: GitHub - GenericJam/imagine_demo · GitHub

The source code for the skeleton library: GitHub - GenericJam/imagine · GitHub

These are generated using the above source code.

“a monkey eating a bag of peanuts”

“a disco ball and a human skull had a baby and this is the result”

Most Liked

GenericJam

GenericJam

This exists now btw - Margarine — Margarine v0.2.3

GenericJam

GenericJam

I have looked at ComfyUI a bit. This is the nature of this type of problem is that everyone wants something slightly different out of it so if I build what I want that doesn’t necessarily accommodate what others want and so I may as well have just made a demo project.

My son and I watch Corridor Crew all the time so we see them using ComfyUI for some cool projects. It’s kind of at the threshold of what my machine can handle for what I want to do so he would really want to do the project for me to go ahead with that.

Where Next?

Popular in Proposals: Ideas Top

sevensidedmarble
Hello all, Apologies if this has been proposed before I guess, but I have a very simple one: With the increasing importance of LV, I th...
New
munksgaard
I’m copying and pasting this issue from @Terbium-135 here verbatim, because I would be interested in such a feature as well, and because ...
New
dimitarvp
To @jonatanklosko and @the-mikedavis: I see that there is a Rust crate at crates.io: Rust Package Registry but it is pointing at https:/...
New
dkuku
This is a proposal to make the map key mismatch errors a bit better: Every time I have a typo It’s very challenging for me even when I u...
New
benkimpel
Background I work at a hedge fund and our traders need highly dynamic UIs (think splitters, tabbed panels, tree lists, enormous data grid...
New
sodapopcan
So after complaining about this for the third or fourth time on this forum, I figured I should make a proposal. TL;DR with can be hard t...
New
zachdaniel
Something we do in various Ash packages is provide routes that the user forwards to in their own application. This is because we are deri...
New
calebjosue
I am reading (Once more) the Phoenix web framework documentation, in the From endpoint to views section contained in the Request life-cyc...
New
engineeringdept
In 2026 double submit/session tokens are no longer necessary to prevent against CSRF attacks. Instead, we can use the Sec-Fetch-Site head...
New
pierrelegall
Problem Currently, List.first/2 and List.last/2 return a default value (or nil) when the list is empty. However, there are cases where an...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 48475 226
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43806 214
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New

We're in Beta

About us Mission Statement