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')
  • @justmypornbrowsingaccount
    link
    English
    37 months ago

    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?

    • @[email protected]OP
      link
      fedilink
      English
      1
      edit-2
      7 months ago

      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…

      • @justmypornbrowsingaccount
        link
        English
        27 months ago

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