Steven Mackaay's stuff

A collection of odds and ends

    • My Gallery
    • My Software
    • Old Games
    • Python Code Stuff

Steven Mackaay's stuff

/

Archive

/

Tag: python

  • Ripping an image based PDF to text (and old TurboBASIC commands)

    Recently, I wanted to pull text from a PDF that was scanned in from an old manual, namely the Borland Turbo Basic manual. The text that was in the document was garbage, nothing there to be done, so I decided to write something that would allow me to: 1. Load a PDF2. Rip the images […]

    9/15/2024

    ·

    Programming

    ¶¶¶¶¶

    Borland Turbo Basic / code snippet / data recovery / documentation / image extraction / OCR / PDF processing / programming / PyMuPDF / python / Tesseract / text analysis / text extraction / turbo basic / tutorial

    ¶¶¶¶¶

    ¶¶¶¶¶

  • New prompt permutation script

    A while back I made a prompt permutation script for generating large numbers of image prompts for use in automatic1111. I updated it with a new operator, the incremental operator ‘&’ so it will cycle through the list items instead of choosing random ones. Here is a sample prompt and output. Basically a fancy search […]

    8/25/2024

    ·

    Personal stuff, Programming

    ¶¶¶¶¶

    image prompts / javascript / permutations / python / stablediffusion

    ¶¶¶¶¶

    ¶¶¶¶¶

  • StableDiffusion Permutation Script Update

    So, like a week ago I wrote a script to make permutations for SD prompts. I’ve updated the script to allow for random terms as well. This allows one to add variance in the prompt but to not add to the number of permutations. Everything is explained in the code block comment. just change the […]

    5/28/2024

    ·

    Programming

    ¶¶¶¶¶

    permutations / prompts / python / stablediffusion

    ¶¶¶¶¶

    ¶¶¶¶¶

  • Resolutions for SD image generation

    When making images for StableDiffusion it’s best to take the aspect ratio in mind and make it fit into the total number of pixels that the model was trained on. This results in the best images for that given model. So, for SDXL it’s 1024×1024, others it may be 768×768 or even 512×512. Here is […]

    5/23/2024

    ·

    Miscellaneous stuff, Programming

    ¶¶¶¶¶

    aspect ratios / code / python / stablediffusion

    ¶¶¶¶¶

    ¶¶¶¶¶

Designed with WordPress

Tumblr

/

DayOne

/

Instagram