50 points · by arthurcolle · 4y ago · 36 comments
I think this will likely fall over but I figured this would be a cool little thing to demo. I removed the NSFW filter so be mindful of your prompts!
I don't persist numbers and there is no linkages being saved between the original text message and the generated images.
I would like to use an affordable GPU cloud hosting solution but I had some difficulties with Vast.ai even though they are pretty affordable. It seems like because the instance they give you is just a running Docker container, I can't easily run Docker inside those instances, so I will probably just have to rewrite this in a more scalable way and have it deploy a container that I have designed to operate in an equally simple way (handle webhook request from Twilio/parse message/run message prompt through txt2img and then upload to s3 and send back the S3 link to the original sender).
I plan to support img2img via photos taken on a phone camera and ingested as an MMS message after I have rewritten this to make it actually productionized and scalable. This was a 1.5 hr proof of concept after I tried to write a better version yesterday actually running on a GPU host machine but was facing the above infrastructure problems.
Basically just FastAPI for the API/hooks, Twilio for messaging and [REDACTED] for running the model.
Otherwise, I recommend using runpod, lambda, etc for an order of magnitude of savings.
Crowd source services like vast.ai aren't reliable and barely less expensive than dedicated low cost providers.
If you don't mind ~30 minute one time setup you can get stable diffusion up and running incl. a nice webinterface on basically any cloud provider offering GPUs. I used https://rentry.org/GUItard as a guide and adopted it slightly for my needs.
As my desktop only has a RTX3060 I am renting a GPU instance on Genesis Cloud (billed by the minute and no cost while instance is stopped) using a RTX3090 with 24 GB of vram.
It’s so rad to have a project like this so accessible through text.
Really happy to hear you are enjoying it :) Please forgive me if it falls over, I am operating in a hostile environment haha.
Everyone in my house has been thinking up silly prompts to see what comes back. Thanks for setting this up.