5 ms·
Hi! Creator here! I just started hacking on this last night and wasn't expecting to see this on HN already :) It works by taking your prompt and generating an
by Charlieholtz 3y ago
Hi! Creator here! I just started hacking on this last night and wasn't expecting to see this on HN already :)
It works by taking your prompt and generating an emoji using https://replicate.com/fofr/sdxl-emoji https://replicate.com/fofr/sdxl-emoji. Next, I remove the background using https://replicate.com/cjwbw/rembg https://replicate.com/cjwbw/rembg. Then, click to download and add to slack!
It's all open-source, code is here: https://github.com/cbh123/emoji https://github.com/cbh123/emoji
Let me know if you have any questions!
- hedgehog 3y agoRemarkably complete, it even declined to make a dirty eggplant.
- tasty_freeze 3y agoI tried the prompt "electric bass" -- the generated image was OK (it was a three string bass, but whatever) but the background removal not only removed the background but most of the body of the bass because (I assume) the pickguard was the same color as the image background.
- basch 3y agoThe word confused appears to cause a failure
- yieldcrv 3y agoOh this is crazy, I didnt realize replicate had user models like that for chaining Is there a good video or channel to follow thats all about replicate and similar services at this level of depth?
- araes 3y agoHi, neat idea. Appear to have hit an issue. https://i.imgur.com/XQGfBed.png https://i.imgur.com/XQGfBed.png Interesting, just not a clean Emoji. Using :bob: (Thought it might give me "B.O.B.", "Bob Dylab", or "What about Bob")
- samstave 3y agoWonderful, but the background removal breaks the image - the original final is great, then it destroys it trying to remove the background... Try this prompt, and it gives a full image, then depending, it culls far too much when removing background, please make background removal optional? "round brook as designed by comfort tiffany and alphonse mucha in green black and gold"
- Charlieholtz 3y agoYeah I’ve noticed that too. Adding a toggle soon!
- gedy 3y agoReally cool, I think this would be a nice service for Slack, etc to add custom emoji
- petercooper 3y agoThat's such a coincidence. I was browsing Replicate last night for new models and played with the very same one and was impressed at the results (well, mostly). Kudos to you for turning it into something more accessible and the background removal idea. For everyone else, Replicate is well worth playing around with if you want to tinker with some models without much commitment.
- Charlieholtz 3y agoAhah, that's awesome. Thank you! Let me know if you have any questions about Replicate! Happy to help.
- packjc 3y agowhat did you use to recorder the demo in the GitHub readme? its very smooth on the transitions.
- itslennysfault 3y agoElixir... don't see that every day. I started reading through the code and was like "what the heck is an ex file?!!" Never really seen Elixir before. Looks pretty nice.
- danielbln 3y agoThe beauty of Ruby with the bulletproof-ness of Erlang.
- whalesalad 3y agoElixir is a killer language and tool. It's considered esoteric these days but I think more and more folks are going to wake up to the inherent beauty of the Erlang BEAM and OTP applications pretty soon here.
- Charlieholtz 3y agoYes! I love Elixir :) Phoenix LiveView is really amazing. I feel so fast working in it. I got hooked after watching Chris McCord's 'Build a real-time Twitter clone in 15 minutes' demo, and things have improved a lot since then.
- thedangler 3y agoDoesn't this cost money? Could you use a model from huggingface too. I'm trying to get into this kind of stuff, but I want to use free or local AI models to avoid bills.. lol
- benrutter 3y agoI guess even with hugging face you have to pay for the compute costs which could get pretty big pretty fast if something takes off.
- subbu 3y agoJust came off your Elixir talk photos on Twitter to find this on HN. Please share your ElixirConf talk recording. Producing a nice emoji/avatar for an AI agent seems like a cool idea.
- Charlieholtz 3y agoThanks so much :) I'll share it as soon as I have access! I'll also post a transcript on my site (charlieholtz.com) soon.
- jsf01 3y agoSuper cool! I would add a checkbox to toggle whether you want background removal, or make that an optional second step. In about half the cases I tried, the background was an important part of my image and without it only weird artifacts remained.
- Charlieholtz 3y agogreat idea! working on this now
- lawlessone 3y agoI really like it. It does seem to be suffering a little from some biases that are probably coming from sdxl though.
- nonethewiser 3y agoWhat biases?
- lawlessone 3y agoAs others have pointed out it tends to associate some professions with specific races. And crime related emojis with black people. It's a Stable Diffusion issue.
- meowtimemania 3y agoIt seems biased towards white people for most anything I input. criminal - black man stealing - white murderer - white killer - white thief - white skin, black beard. arab? Indian? man murdering kittens - white
- another_story 3y agoI just ran "a criminal" 8 times and got only white men.
- yreg 3y agoIt's not a stable diffusion issue, it's a culture issue.
- lawlessone 3y ago"It's not a stable diffusion issue, it's a culture issue." parroting and perpetuating the biases will ensure it will continue to be a culture issue.
- feralderyl 3y ago
- strunz 3y agoAwesome job! One criticism I have is these are emoji, they're more like bitmoji or memoji.
- Turing_Machine 3y agoI see that the perpetually-offended have already shown up. My advice is to either simply ignore them, or point and laugh (your choice). The one thing you can count on them is that they are never going to be satisfied. Most likely they're not even actually offended, not really. They just enjoy bullying other people.