Hey mates, recently I've developed a tool to use the GenerativeAI on the AI Horde to created random avatars and banners on lemmy. To keep things spicy, I wanted to deploy to rotate the /c/piracy banner daily, as I've done in a bunch of other communities like !stable_diffusion_art@lemmy.dbzer0.com and the lemmy.dbzer0.com.

So now this is now active!

In case you're curious,. the current prompt used is this:
"A of a (solo:1.2) {cyberpunk|steampunk|solarpunk|dieselpunk|anarchist|fantasy|science fiction} {disney pixar 3D|realistic|dreamworks 3D animation} {male|female|androgynous} {Abkhazian|Afghan|Åland Island|Albanian|Algerian|American Samoan|Andorran|Angolan|Anguillan|Antarctic|Antiguan|Argentine|Armenian|Aruban|Australian|Austrian|Azerbaijani|Bahamian|Bahraini|Bangladeshi|Barbadian|Belarusian Belgian|Belizean|Beninois|Bermudian|Bhutanese|Bolivian|Bonaire|Herzegovinian|Botswana|Bouvet Island|Brazilian|BIOT|Bruneian|Bulgarian|Burkinabé|Burundian|Cabo Verdean|Cambodian|Cameroonian|Canadian|Caymanian|Central African|Chadian|Chilean|Chinese|Christmas Island|Cocos Island|Colombian|Comorian|Congolese|Congolese|Cook Island|Costa Rican|Croatian|Cuban|Curaçaoan|Cypriot|Czech|Danish|Djiboutian|Dominican|Dominican|Timorese|Ecuadorian|Egyptian|Salvadoran|English|Equatorial Guinean|Eritrean|Estonian|Swati|Ethiopian|European|Falkland Island|Faroese|Fijian|Finnish|French|French Guianese|French Polynesian|French Southern Territories|Gabonese|Gambian|Georgian|German|Ghanaian|Gibraltar|Greek|Greenland|Grenadian|Guadeloupe|Guamanian|Guatemalan|Guernsey|Guinean|Bissau-Guinean|Guyanese|Haitian|Heard Island|Honduran|Cantonese|Magyar|Icelandic|Indian|Indonesian|Iranian|Iraqi|Irish|Manx|Israelite|Italian|Ivorian|Jamaican|Jan Mayen|Japanese|Jersey|Jordanian|Kazakhstani|Kenyan|Kiribati|North Korean|South Korean|Kosovan|Kuwaiti|Kyrgyzstani|Laotian|Latvian|Lebanese|Basotho|Liberian|Libyan|Liechtensteiner|Lithuanian|Luxembourgish|Macanese|Madagascan|Malawian|Malaysian|Maldivian|Malinese|Maltese|Marshallese|Martiniquais|Mauritanian|Mauritian|Mahoran|Mexican|Micronesian|Moldovan|Monégasque|Mongolian|Montenegrin|Montserratian|Moroccan|Mozambican|Myanma Burmese|Namibian|Nauruan|Nepalese|Dutch|New Caledonian|New Zealand|Nicaraguan|Nigerien|Nigerian|Niuean|Norfolk Island|Macedonian|Northern Irish|Northern Marianan|Norwegian|Omani|Pakistani|Palauan|Palestinian|Panamanian|Papuan|Paraguayan|Peruvian|Filipino|Pitcairn Island|Polish|Portuguese|Puerto Rican|Qatari|Réunionnais|Romanian|Russian|Rwandan|Saban|Barthélemois|Saint Helenian|Kittitian|Saint Lucian|Saint-Martinoise|Miquelonnais|Vincentian|Samoan|Sammarinese|São Toméan|Saudi|Scottish|Senegalese|Serbian|Seychellois|Sierra Leonean|Singaporean|Sint EustatiusStatian|Sint Maarten|Slovak|Slovenian|Solomon Island|Somali|South African|South Georgia Island|South Ossetian|South Sudanese|Spanish|Sri Lankan|Sudanese|Surinamese|Svalbard|Swedish|Swiss|Syrian|Taiwanese|Tajikistani|Tanzanian|Thai|Timorese|Togolese|Tokelauan|Tongan|Trinidadian|Tunisian|Turkish|Turkmen|Turks and Caicos Island|Tuvaluan|Ugandan|Ukrainian|Emirati|British|American|Uruguayan|Uzbekistani|Ni-Vanuatu|Vaticanian|Venezuelan|Vietnamese|British Virgin Island|U.S. Virgin Island|Welsh|Wallis and Futuna|Sahrawi|Yemeni|Zambian|Zanzibari|Zimbabwean} pirate {standing in front of a sail|sitting in front of a monitor}, {Rococo|Digital Art|Baroque} style, wearing a {red|blue|yellow|green|black|white} {bandana|hat|scarf} and holding a {crimson|gold|silver|emerald|magic|azure|obsidian|ebony} {sword|keyboard|compass|mug|treasure|flag|club|amulet|fruit}, rich detailed {open|cloudy|stormy|sunny} sky background###multiple people, duo, cleavage, bitcoin"

Pretty long ye? The way this works is that each a random option is picked from each collection wrapped in { } which allows me to generate versatile options every day to keep things fresh

Here's some sample images that will be created

*removed externally hosted image* *removed externally hosted image* *removed externally hosted image* *removed externally hosted image*

If you have improvements you want to see on the prompt, do let me know in the comments. In the future I'm having thoughts of allowing the community here to automatically send adjustments ideas to the prompt for funsies.

  • orca@orcas.enjoying.yachts
    ·
    8 months ago

    Hey, this is awesome! I might have to set this up to change the banner on my own instance daily. I’ve written a decent amount of python in my time so maybe I can take a look at the code too.

  • Melatonin@lemmy.dbzer0.com
    ·
    8 months ago

    db0, can I write prompts like that for the image generators on AI hoard? Would it select one of the random choices within the brackets to use like your banner does? I think that could be fun.

  • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
    ·
    8 months ago

    Are you sure it won't create problems?

    User and community profiles are updated at most every 24 hours...

    Source

    Perhaps there could be some skips since both happen every 24 hours.

    I don't understand the federation enough, so I'd personally bumb it to every 26 hours. Not for any particular reason except that it's the next whole even number. Or maybe 30 when rounded to 10 which is nice. But I don't like the 3 so perhaps 40.
    Although 250 hours also sounds good as it's even, a quarter of 1,000 and it's 900,000 seconds and not some odd number. But that's so close 1M...

    Nevermind, I am just overthinking it. But perhaps a bit over 24 hours might be a good idea. I don't know, perhaps it's a stupid thought.

  • notfromhere@lemmy.ml
    ·
    8 months ago

    Thanks for teaching some new techniques with SD prompting. I had no idea prompts could be done that way. Could try playing around with some negative prompting to steer it away from things at random… cartoon or plastic etc. I’d like to see a mix of more realistic looking banners, some orc pirates, maybe tiny fairy pirates.

  • keepcarrot [she/her]
    ·
    8 months ago

    I wonder if I can set up an image AI that only takes images from big company copyrights (with some weighting), also advertising

  • Draconic NEO@lemmy.dbzer0.com
    ·
    8 months ago

    Very neat idea, though I do have a question, are these banners set to upload to the pictrs database or are they set to upload to a fixed location with the pointer in the community set to that location, it might be a better idea to do that i.e. community banner set to i.e. https://dbzer0.com/images/piracybanner/banner.png and have it overwrite that image when replacing without changing the hardcoded link in the communities. I've done this on my other profiles, using a hard-coded link to another site and changing the images there without uploading a new one.

    A reason why that could be worth it is because on pictrs the old ones aren't normally deleted and they can accumulate fast. Of course you could also set up automated deletion of the old one on pictrs which would accomplish the same thing but could be a bit more challenging since I've heard pictrs management is a pain on Lemmy in its current state.

  • CuteistFox@reddthat.com
    ·
    8 months ago

    I would remove the watermark and also add a way for people to submit banners. Im also on photn and cant see it.