3

There was a recent thread that has been deleted titled: [allogen] just the most genericest generator ever

This generator had a nice feature to apply artists to the t2i plugin... but it had a LOT of external stuff going on plus performance-killing full-size page background images... as well as a lot of extra code and styles that I don't really need. I know @VioneT@lemmy.world commented on it.

Based on that gen, I figured it would be handy to have an artist plugin.. so I made one called "artist-plugin" so I could import it into t21 generators. https://perchance.org/artist-plugin

Now I'm working on a demo generator using this plugin, and I'm 99.9% happy with it so far. I'm still doing minor tweaks to make it even cleaner. It's VERY basic: https://perchance.org/aa3den2ecy

Everything is working perfectly EXCEPT: When the page first loads, the artist that displays is NOT being used for the initial images that are displayed (because it's random from the plugin).

Clicking on the buttons (Artist name buttons or random Artist button) works as intended, and then everything is fine until the next page reload. If you click the "Update Images" button BEFORE choosing an artist, everything is random and the artist title is not related to the images.

How can I get the Artist correct (in the heading AND in the prompts) on the first page load? Init? Store a variable? I'm sure I'm missing something silly and simple.

Thanx for any help!

all 7 comments
sorted by: hot top controversial new old
[-] VioneT@lemmy.world 3 points 9 months ago

I updated the fork of the original one on this generator. I switched the artist list to the importable one.

I suggest messaging @Alllo@lemmy.world if they ever have any updates to the Artist list or if they need any help in pre-processing their list.

ps. that generator is also on the learn-perchance-plugins-text-to-image page.

[-] Ashenthorn@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

Thanks! In the plugin, there has been one update to the artists already since I first checked @Alllo@lemmy.world 's original generator. I also fixed case and sort for the artist names in the plugin (and added a few artists), and will maintain that in the plugin to avoid having to include .titleCase in the generator code.

ps: It seems like you could output the copy button just once - next to the title. I think it would be more useful to be able to copy AFTER seeing a sample of the artist's work generated? I guess it would depend on how the generator is used.

[-] VioneT@lemmy.world 1 points 9 months ago

I've removed the copy button on each name and only have it on the top, next to the artist name.

If you have any ideas for prompts to generalize the artists style, i.e. currently it is only showing results for portraits, what if we had a sample prompt for a landscape, etc. for easy test of the artist's style..

Pinging @Alllo@lemmy.world if you have any input on this.

[-] Ashenthorn@lemmy.world 1 points 9 months ago

If you have any ideas for prompts to generalize the artists style, i.e. currently it is only showing results for portraits, what if we had a sample prompt for a landscape, etc. for easy test of the artist’s style…

Hmm.. that might be tricky because the vast majority of the artists in the list primarily draw/paint people. I changed the prompt to "seascape" and only a few don't include people. I spose you could add (people) to the negative prompt and see what happens.

A more ambitious project would be to have multiple subjects to choose from.

[-] Alllo@lemmy.world 2 points 9 months ago* (last edited 9 months ago)

ping ping ping pings received.

i still have 349 artists to add.

let the images start initially, and then load your custom variables, and then re update() the images. It will look like they start having loaded correctly.

I have no reason to rush, though I would in exchange for your firstborn child, the tears of a mermaid, and three feathers from a hippogryph. On allogen, said artist list is actually so huge that it is unwieldy. And I am way deep in the android games I am making, so my focus is largely elsewhere except for occasional steps forward allogenwise. It may be that when I start tackling the structuring for my artist section to make it not unwieldy is when I come to the time to complete the list. I also occasionally socialize with unwitting nearby humans to lull them in to a false sense of security ~it's during those times that I can casually do huge list things and would do the remaining 349 entries. Could be tomorrow. Could be 700 years from now. All just guesses. No idea. I see tho you two are using it, eyeing it's takeability in to all perchance, and don't want to manually do the 900+ entries yourselves. I appreciate the credit ty VioneT. Will say when there is something I should say. bai

this post was submitted on 19 Jan 2024
3 points (100.0% liked)

Perchance - Create a Random Text Generator

445 readers
8 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 1 year ago
MODERATORS