Skip to content

skunkworxdark/autostereogram_nodes

Repository files navigation

autostereogram-nodes for InvokeAI

Discord Link :- autostereogram-nodes

InvokeAI nodes to generate autostereogram images from a depth map. This is not a very useful node but more a 90s nostalgic indulgence as I used to love these images as a kid.

Usage

Install

There are two options to install the nodes:

  1. Recommended: Use Git to clone the repo into the invokeai/nodes directory. This allows updating via git pull.

    • In the InvokeAI nodes folder, run:

      For Latest Invoke (4.0+):

      git clone https://github.com/skunkworxdark/autostereogram_nodes.git

      For Invoke (3.5-3.7):

      git clone https://github.com/skunkworxdark/autostereogram_nodes/tree/invoke-3.7
  2. Manually download and place autostereogram.py & init.py in a subfolder in the invokeai/nodes folder.

Update

Run a git pull from the autostereogram_nodes folder.

Or run the update.bat or update.sh.

For manual installs, download and replace the files.

Remove

Delete the autostereogram_nodes folder. Or rename it to _autostereogram_nodes and Invoke will ignore it.

Nodes

This pack consists of two nodes Autosteteogram and Adv Autostereogram.

Common inputs

  • Board: Board name to save images to.
  • Depth Map: The grayscale depth map to convert into.
  • Pattern: Optional image to use as the background pattern for the autostereogram. If no image is provided random dots will be used.
  • Invert Depth Map: Inverts the depth map. This has the impact of inverting the direction of the 3D effect. It is also the difference between crossing or uncrossing your eyes to view the image.
  • Grayscale: Convert the output to grayscale.

Autostereogram

  • Pattern Divisions: How many times the pattern repeats in output images 5-10 is in generally a good range. The lower the repeats the greater the depth effect but the harder it is to see.

Adv Autostereogram

  • Pattern Width: The width to rescale the pattern. As a guide 5-10 pattern repeats across the output image is a good start.
  • Depth Steps: The number of depth steps, 30-127 is a good range. A good starting point is to have the number of steps be around half of the pattern width.

Examples

Take an image and create a depth map from it then feed it into the autostereogram node along with an optional pattern image.

Workflow example autostereogram.json Workflow

Alt text Alt text Alt text Alt text

Alt text Alt text Alt text

Alt text Alt text Alt text

Example background patterns. These were generated in InvokeAI using the seamless tiling option and the prompt "a random spiderweb pattern". Good patterns will have quite a lot of small details across the x-axis of the image and will avoid large blocks of single color.

Alt text Alt text Alt text

About

autostereogram from depth map nodes for InvokeAI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages