News for hackers. Stuff that matters.
Re:Emoji Generator with AI by Charlieholtz on Friday September 08, 2023 @10:17AM (#37433812)
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. Next, I remove the background using 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

Let me know if you have any questions!

Re:Emoji Generator with AI by gedy on Friday September 08, 2023 @10:28AM (#37433951)
Really cool, I think this would be a nice service for Slack, etc to add custom emoji
[dead]
Re:Emoji Generator with AI by Charlieholtz on Friday September 08, 2023 @06:39PM (#37440200)
Yeah I’ve noticed that too. Adding a toggle soon!
Re:Emoji Generator with AI by petercooper on Friday September 08, 2023 @10:52AM (#37434255)
That'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.
Re:Emoji Generator with AI by Charlieholtz on Friday September 08, 2023 @04:34PM (#37439049)
Ahah, that's awesome. Thank you! Let me know if you have any questions about Replicate! Happy to help.
Re:Emoji Generator with AI by packjc on Friday September 08, 2023 @10:56AM (#37434327)
what did you use to recorder the demo in the GitHub readme? its very smooth on the transitions.
Re:Emoji Generator with AI by itslennysfault on Friday September 08, 2023 @11:19AM (#37434684)
Elixir... 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.

Re:Emoji Generator with AI by danielbln on Friday September 08, 2023 @11:29AM (#37434866)
The beauty of Ruby with the bulletproof-ness of Erlang.
Re:Emoji Generator with AI by whalesalad on Friday September 08, 2023 @12:25PM (#37435737)
Elixir 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.
Re:Emoji Generator with AI by cpursley on Friday September 08, 2023 @12:47PM (#37436049)
Is Elixir really considered esoteric? There’s some pretty big businesses running on it.
Re:Emoji Generator with AI by pawelduda on Friday September 08, 2023 @02:58PM (#37437858)
It never took off as the Ruby killer. It hurts to say so because I agree with all the positive Elixir comments around here - IMO, people are missing out by not knowing of it.
Re:Emoji Generator with AI by Charlieholtz on Friday September 08, 2023 @01:14PM (#37436414)
Yes! 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.
Re:Emoji Generator with AI by thedangler on Friday September 08, 2023 @11:36AM (#37434964)
Doesn'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
Re:Emoji Generator with AI by benrutter on Saturday September 09, 2023 @04:44AM (#37443403)
I guess even with hugging face you have to pay for the compute costs which could get pretty big pretty fast if something takes off.
Re:Emoji Generator with AI by subbu on Friday September 08, 2023 @12:10PM (#37435507)
Just 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.
Re:Emoji Generator with AI by Charlieholtz on Friday September 08, 2023 @01:32PM (#37436680)
Thanks so much :)

I'll share it as soon as I have access! I'll also post a transcript on my site (charlieholtz.com) soon.

Re:Emoji Generator with AI by jsf01 on Friday September 08, 2023 @12:34PM (#37435861)
Super 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.
Re:Emoji Generator with AI by Charlieholtz on Friday September 08, 2023 @12:57PM (#37436181)
great idea! working on this now
Re:Emoji Generator with AI by lawlessone on Friday September 08, 2023 @12:43PM (#37435989)
I really like it. It does seem to be suffering a little from some biases that are probably coming from sdxl though.
Re:Emoji Generator with AI by nonethewiser on Friday September 08, 2023 @12:55PM (#37436155)
What biases?
Re:Emoji Generator with AI by lawlessone on Friday September 08, 2023 @01:26PM (#37436585)
As 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.
Re:Emoji Generator with AI by yreg on Friday September 08, 2023 @01:36PM (#37436744)
It's not a stable diffusion issue, it's a culture issue.
Re:Emoji Generator with AI by lawlessone on Friday September 08, 2023 @01:45PM (#37436877)
"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.

Re:Emoji Generator with AI by feralderyl on Friday September 08, 2023 @03:48PM (#37438517)
The text to image models represent the data that is being fed to it. If you feed it 100 images and out of those 100 images 95 are of white men politicians and 5 are of politicians of color, that's what you are going to get back. These datasets are gathered automatically from various internet sources and represent the data that is available out in the wild. For stable diffusion to "fix" the bias in the data set would be simply impossible. That would require hiring an army of people whose sole purpose would be to "rebalance" the data set on some internal objective schema manually.
Re:Emoji Generator with AI by nonethewiser on Friday September 08, 2023 @03:50PM (#37438542)
Id rather train it on real data and fix the root cause than to interject some version of utopia that won the minds of developers.
Re:Emoji Generator with AI by meowtimemania on Friday September 08, 2023 @05:08PM (#37439447)
It 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

Re:Emoji Generator with AI by another_story on Friday September 08, 2023 @09:51PM (#37441413)
I just ran "a criminal" 8 times and got only white men.
Re:Emoji Generator with AI by strunz on Friday September 08, 2023 @02:10PM (#37437217)
Awesome job! One criticism I have is these are emoji, they're more like bitmoji or memoji.
Re:Emoji Generator with AI by Turing_Machine on Friday September 08, 2023 @03:36PM (#37438367)
I 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.

Re:Emoji Generator with AI by hedgehog on Friday September 08, 2023 @05:43PM (#37439771)
Remarkably complete, it even declined to make a dirty eggplant.
Re:Emoji Generator with AI by tasty_freeze on Friday September 08, 2023 @06:52PM (#37440289)
I 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.
Re:Emoji Generator with AI by basch on Friday September 08, 2023 @07:06PM (#37440395)
The word confused appears to cause a failure
Re:Emoji Generator with AI by yieldcrv on Friday September 08, 2023 @10:13PM (#37441532)
Oh 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?

Re:Emoji Generator with AI by araes on Saturday September 09, 2023 @07:28PM (#37451327)
Hi, neat idea. Appear to have hit an issue. 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")