I had a request for more info on my workflow. The last photo of the album is my setup. These took about 26 seconds each on an RTX 4070 and overflowed the 12GB of VRAM by about an additional 5GB during the ‘Hires fix’ phase (no big deal just slows thing down). Below the album you’ll find a Python script I use to build the album after I upload the images. About half of them were ‘good enough’ to include in the album.

Click on an image to see prompt details. Check out my post history for more.

Input file will look like this:

https://image.delivery/page/adezoha
https://image.delivery/page/dkckyle
...

Output will look like this:

[![](https://fast.image.delivery/adezoha.jpg)][1]
[![](https://fast.image.delivery/dkckyle.jpg)][2]

[1]: https://image.delivery/page/adezoha
[2]: https://image.delivery/page/dkckyle

Python script:

def convert_urls(input_file, output_file):
    with open(input_file, 'r') as f:
        urls = f.read().splitlines()

    with open(output_file, 'w') as f:
        f.write('Click on an image to see prompt details.\n')
        f.write('Check out my post history for more.\n\n')
        for i, url in enumerate(urls, start=1):
            id = url.split('/')[-1]
            if (url):
                f.write(f'[![](https://fast.image.delivery/{id}.jpg)][{i}]\n')

        f.write('\n')

        for i, url in enumerate(urls, start=1):
            if(url):
                f.write(f'[{i}]: {url}\n')

# Usage
convert_urls('input.txt', 'output.txt')
3 points

Nice, thanks for the info. I noticed that I crash, when Hires Fix is enabled because my GPU runs out of memory.
Is there a toggle to enable overflowing to system RAM?

permalink
report
reply
1 point
*

I don’t recall having to manually turn that feature on. (I’m on Windows 11). If I recall, Windows will only allow a process using VRAM to overflow into system RAM up to half of your total system RAM. So, if your system has 32GB, Windows will only let you use 16GB. If it’s crashing, you can try generating your images and then upscaling them afterwards in a separate process…

permalink
report
parent
reply
2 points

Yeah two-step was my workaround. Running Linux here, so probably a different beast altogether.

permalink
report
parent
reply
1 point

It’s amusing that these negative prompts like “bad hands” and “fake” are so prevalent, are you just copying them from others? It doesn’t make sense - you’re saying you don’t want this or this.

permalink
report
reply
1 point

Haha, yes, I’m copying them lol - but the interesting thing is that a negative prompt has the potential to remove things other than the thing the prompt implies. For example, if you add ‘ginger’ to your negative prompt you’ll get different results than if you add ‘red head’. So, in short, if I find a prompt I want to copy, I copy both the prompt and negative prompt to increase the likelihood of getting results similar to the image I’m trying to replicate.

permalink
report
parent
reply

AI Generated Porn

!aigen@lemmynsfw.com

Create post

Welcome to the LemmyNSFW home of AI generated images and (for the wizards that can make them) animations of both the anime and realistic nature.

If you’re here to share resources & ask questions, please use the stickied discussion thread for that.

Remember to mark your posts as NSFW.

Rules

  1. Just don’t be a dick, really
  2. No depictions of celebrities and other actual living people.
    • Without explicit and verifiable consent
  3. Consider sharing your prompts. Not required, but it’s nice, y’know
    • Lemmy will strip out the prompt data from images. Consider either uploading somewhere else (Like catbox.moe) or manually pasting the data into the body before posting
  4. No disturbingly inaccurate “body horror” generations

And of course, remember to follow LemmyNSFW’s rules (duh)

Notice

AIs don’t know the law, and can’t judge their outputs based on how… legal… they may be. Exercise caution and generate responsibly. If you see anything suspicious, report.

Also Check Out

Community stats

  • 443

    Monthly active users

  • 2K

    Posts

  • 3K

    Comments