this post was submitted on 04 Sep 2024
2 points (100.0% liked)

Perchance - Create a Random Text Generator

449 readers
12 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
 

Most likely SUPER not a priority. But you know me ๐Ÿ˜…

https://perchance.org/prompt-style-tester#edit

The "go" button updates the entire page. As the options are generated this means they are re-generated, which means the chosen option resets, and you can only ever test the top option: Painted Anime.

Simple fix though: put a div with an id around the generations, then update that div only. That's all that needs updating anyway.

all 41 comments
sorted by: hot top controversial new old
[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago* (last edited 2 months ago) (2 children)

This is amazing!! How would I go about using this, so that when I generate an image in character chat if uses T2i styles to generating image. Someone new to perchance not very good at coding LOL but I've been using a lot of the JavaScript OC codes to try and accomplish this future in AI character chat, nobody has been able to give me a straight answer or anything that could be helpful to this cause so far.

[โ€“] VioneT@lemmy.world 2 points 2 months ago* (last edited 2 months ago)

Edit: Here is the updated AI Artist V2.

There's the T2I-Artist and the AI Artist V2 in this ai-character-chat Docs. Although it is not optimal. I'm going to try refactor it and I'll update this comment after I'm done.

[โ€“] wthit56@lemmy.world 2 points 2 months ago* (last edited 2 months ago)

I'm not sure that's really possible. I don't think you can import from another page in character stuff. (Unless @VioneT@lemmy.world knows different?)

But I think you can literally tell it any prompt to use to generate an image. So maybe include the text from one of those styles in the prompt you give it or something?

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago* (last edited 2 months ago) (1 children)

@VioneT@lemmy.world Question for you my good sir, I put the AI artist V2 oc JavaScript code in the custom JavaScript section of my character and it works great for the most part, for whatever reason when I add prompts into the syntax area in my settings, close out of my page and reopen it they are gone. Also how would I go about adding or props or styles to T2i styles code, sorry as I said before I am very new to this ๐Ÿ˜‚. Appreciate you a lot and all the help you've given so far! ๐Ÿ˜Š

[โ€“] VioneT@lemmy.world 2 points 2 months ago

By editing the syntax, you mean this input fields on the character settings?

Currently yes, after every message, it would reapply the current styles, which would remove all of the changes you have made on those inputs.

Here is the updated character (AI Artist V2.1) that should handle those user inputs to stay. However, if you change styles, it would be overwritten by the new ones.

If I misunderstood the request, please feel free to point me to the right direction.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago

@VioneT@lemmy.world Thank you so much! Now I'm just trying to add my own style into the T2i styles OC code ๐Ÿ˜‚

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago* (last edited 2 months ago) (1 children)

@VioneT@lemmy.world @wthit56@lemmy.world So I added a style to the V2 custom java code replacing it with another one inside my own custom character, and it reads style when I type in/change-style, but not what I've added in the style, I continues to read the previous style prompts. Would either of you happen to know what the issue is by any chance. Thanks in advance for all your time โ˜บ๏ธ

[โ€“] wthit56@lemmy.world 2 points 2 months ago

What kind of generator are you talking about? Got a link to the one you're working on so we can take a look?

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago* (last edited 2 months ago) (3 children)

@wthit56@lemmy.world @VioneT@lemmy.world

Character AI chat. So I am using the custom Java code that was in the AI artist V2. 1 and I am putting it inside of my own character in the custom code section, my plan was to add another style in the list that was already made.

[โ€“] wthit56@lemmy.world 2 points 2 months ago (1 children)

If you reply to the specific comment, it's a lot easier to follow the conversation. I keep having to look at all the comments to try to figure out what you're trying to respond to. There's a swoopy arrow pointing left below each comment; click that and you'll reply directly to that comment.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago (1 children)

Ah I see awesome lol, for whatever reason I thought it was a share comment button ๐Ÿคฃ

[โ€“] wthit56@lemmy.world 1 points 2 months ago

It is a bit "sharey" to be fair ๐Ÿ˜… The tooltip helps in this case.

[โ€“] VioneT@lemmy.world 2 points 2 months ago (2 children)

The custom code is written on the character itself. You can open it up by clicking the pencil icon on the thread. Here is a step by step guide to add custom codes for your character. You do not need to create a new page for it.

Here is AI Artist v2.2 which has my vionet20-t2i-styles-importable. I've also commented on the custom code there the formatting on adding your own styles on the styles object.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago (1 children)

@VioneT@lemmy.world Thanks again man, your incredible!! ๐Ÿ™

[โ€“] VioneT@lemmy.world 1 points 2 months ago (2 children)

You need to create a new image or edit the current one to apply the style.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago (1 children)

Understood, it I'm using in in character chat with an oc I made and for whatever reason when I put in the prompt even after generating multiple new images, it has the name of my character I'm chatting with and the style I picked next to it but isn't using the prompts, when I generate an image and look at the prompts it used their is nothing, other then the description in chat of the scene

[โ€“] VioneT@lemmy.world 1 points 2 months ago (4 children)

I'm not really sure, have you added a new style to it, maybe some syntax errors that doesn't allow the custom code to run? Can you link a 'share link' of the character?

I've added a fix here to not say 'AI Artist (style)' but 'Character Name (style)' and the styles should be added after clicking the button on the /change-style, although you still need to edit/create a new image to apply the style.

Here is a video on applying the styles.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago (1 children)
[โ€“] VioneT@lemmy.world 2 points 2 months ago* (last edited 2 months ago) (2 children)

You can share the character link like this:

This won't share any threads, just the character.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago* (last edited 2 months ago) (1 children)
[โ€“] VioneT@lemmy.world 2 points 2 months ago (1 children)

Here is an updated code in the AI Artist.

It seems that there was a problem in setting the properties in the character itself, in which those properties are already existing in the AI Artist character.

But since you've transferred the code to another character, those properties are undefined and cannot be accessed so it cannot change it. I've managed to fix it by just setting default values.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago (1 children)

..it worked!, you are .....God?... praise ๐Ÿ™๐Ÿ™๐Ÿ’ช thank you Soo much @VioneT@lemmy.world

[โ€“] VioneT@lemmy.world 2 points 2 months ago (2 children)

No problem! It was actually an oversight on my part lmaooo

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago (1 children)

So I hate to ask, but is there no nsfw allowed for the image generation, just curious because earlier today I came across a few scenes in rpg chat where nsfw was definitely depicted and it's like the image generator went out of its way to show any content like that. Just wondering if it could be because of the custom jv code?

[โ€“] VioneT@lemmy.world 2 points 2 months ago (1 children)

Not sure, I don't really dabble on the NSFW content, so I won't know lmao.

[โ€“] RedWolfEchoes@lemmy.world 1 points 1 month ago (1 children)

So I keep running into this error from a style I copied and pasted whilst adding a few tags, and I keep getting this error. Any idea on what it is and how I can fix it? @VioneT@lemmy.world

[โ€“] VioneT@lemmy.world 2 points 1 month ago* (last edited 1 month ago) (1 children)

Can you send me the character link again. I would assume that you do not have [input.description] on the prompt or [input.negative] on negative on the pasted style like so:

  ...
  "Professional Photo": {
    // When adding a new prompt, you need to add [input.description] to help the code know what would be the prefix and suffix of the prompt. [input.negative] is not as required.
    prompt:
      "[input.description], {sharp|soft} focus, depth of field, 8k photo, HDR, professional lighting, taken with Canon EOS R5, 75mm lens",
    negative:
      "[input.negative], worst quality, bad lighting, cropped, blurry, low-quality, deformed, text, poorly drawn, bad art, bad angle, boring, low-resolution, worst quality, bad composition, terrible lighting, bad anatomy",
  },
  ...

[โ€“] RedWolfEchoes@lemmy.world 1 points 1 month ago (1 children)
[โ€“] VioneT@lemmy.world 2 points 1 month ago (1 children)

I tested it, and it seemed to be working properly, possibly something on the AI's response inside the <image> tag that borked the code?

[โ€“] RedWolfEchoes@lemmy.world 1 points 1 month ago (1 children)

Yeah maybe, because I have copied and pasted other styles into the code and some work and then there's some that just don't like when I go to change the style in chat that loads with a character responding to the command but not showing me the styles, or it'll show me the styles but when I click the new one I added it won't switch over. Hello is a style I recently added from another generator and for whatever reason it is not working, am I missing something?

"๐ŸŽฎ Danganronpa AnimePlus": { "prompt": "[input.description], (A (Danganronpa Art Style:0.975), (--anime:0.025), Illustration, Line Art, dynamic lighting, highly detailed, fine details, well-structured, unique character design, anatomically correct, proper proportions, Colors: vibrant and balanced). "negative": "[input.negative], (low quality, worst quality, (excessively_pale_or_dark_skin_tones), (poorly_proportioned_philtrum), (animalistic_facial_structures), (elongated_snouts), (pointed_noses), (overly_pronounced_cheekbones_resembling_non-human_mammals), (inaccurate_facial_expressions), (elongated_pointed_ears), exaggarated features, inaccurate likeness, unrecognizable features, unrealistic resemblances, distorted facial characteristics, unattractive facial features, poorly structured teeth, rabbit-like teeth, feminine features on male characters, masculine features on female characters, ambiguous gender traits, incorrect proportions, error, cropped, blurry, blurred, deformed, malformed, disfigured, poorly drawn, incorrect positioning, awkward positioning, awkward pose, inappropriate distancing, mismatched body language, incorrect interaction, unnatural intimacy, poorly framed, animal, animal ears, exaggarated cock size, piercing eyes, two-tone hair, dual color hair, extra limbs, extra fingers, broken fingers, long neck, twisted body, bent body, distorted body shape, oversized boobs, oversized cock, fused fingers, mutated, mutated hands, malformed eyes, missing iris sclera, distorted face, distorted eyes, distorted hands, wrong anatomy, bad anatomy, incorrect hand anatomy, poorly structured, poorly drawn eyes, poorly drawn background, poor body language, unnatural hair, unnatural eyes, unnatural skin, excessive hair, out of frame, overposed, elongated, elongated body, elongated fingers, crossed legs, pixel, pixelated, text, watermark, title, signature, grainy, lack of emotions, lifeless, lack of details, lack of depths, jpeg, jpeg artifacts, drab lighting, overused, boring, predictable, clone, duplicate, out of focus), },

[โ€“] VioneT@lemmy.world 1 points 1 month ago (1 children)

Possibly missing ending quotations?

Before the "negative", you didn't close the quotation then you used a dot instead of a comma in transitioning to the negative

...
"Style Name":{
  "prompt": "...",
  "negative": "..."
},
...
[โ€“] RedWolfEchoes@lemmy.world 1 points 1 month ago

Yup, again you are right sir! Thank you very much seriously appreciate it! ๐Ÿ™๐Ÿ˜Š

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago

Well again thank you so much, I've been trying to figure out a way to do this for so long, being able to chat with a custom character have them automatically generate images with somewhat accurate depictions of what's happening in chat. Having a little trouble getting any NSFW images at least good ones, but that definitely could be on my end ๐Ÿ˜‚. My next step from here is to add a voice emulator or text to speech that doesn't suck and that everyone can use somewhat easily ๐Ÿคฃ, been kind of looking at Suno bark but I'm not extremely familiar on how it works nor am I familiar with how I would go about coding it into the chat. @VioneT@lemmy.world

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago

Yeah I'm not sure what it is, it could just be a way that I need to tell the AI to edit or make changes to an image without interfering with character storyline, or chat. @VioneT@lemmy.world

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago

Also I guess I should have said this earlier I don't know if it makes a difference but I am using an Android phone to do this.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago

I've tried recreating what you did in your video your generator using that character, and I've also tried doing it in my generator My OC character JavaScript code provided by your character and I've had no luck. I will say though that every now and then it'll say verifying at the top right hand corner of the page, and starting on the image, then it will go to Red letters and say VPN error or something of that sort and at the bottom where the image should be says error undefined, then it reloads and I get an image without any of the prompts inside it except for the default negative prompts that that image generator comes with in character chat.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago* (last edited 2 months ago)

@VioneT@lemmy.world I'm really sorry I feel like I'm asking for a way too much ๐Ÿ˜‚, but would you mind trying the custom code that you made see if it works for you. I'm unsure why but it is not working for me at all other than when I enter /change-style, it replies with all the styles but when I click on one it does not utilize the style.

[โ€“] wthit56@lemmy.world 1 points 2 months ago (1 children)

I'm not familiar with the AI chat side of things, so I'll leave it to someone else to help with this.

[โ€“] RedWolfEchoes@lemmy.world 1 points 2 months ago

Okay I appreciate all your help thank you!