Add film grain and vignette to images (ComfyUI)

Updated Categorized as Workflow Tagged , , 2 Comments on Add film grain and vignette to images (ComfyUI)

Do you want your AI images to look realistic? This ComfyUI workflow adds film grains and vignettes to an upscaled photo. It includes detailed instructions to control the amount of film grains and vignettes added.

This ComfyUI workflow does the following:

  1. Generate an initial image from the text prompt.
  2. Upscale the image with High Resolution Fix (Hi Res fix)
  3. Add film grain to the image
  4. Add Vignette to the image

You must be a member of this site to download the JSON workflow.

Software

Stable Diffusion GUI

We will use ComfyUI, a node-based Stable Diffusion GUI. You can use ComfyUI on Window/Mac or Google Colab.

Check out Think Diffusion for a fully managed ComfyUI/A1111/Forge online service. They offer 20% extra credits to our readers. (and a small commission to support this site if you sign up)

See the beginner’s guide for ComfyUI if you haven’t used it.

Step-by-step guide

Step 0: Load the ComfyUI workflow

Download the workflow JSON file below.

Become a member of this site to see this content

Already a member? Log in here.

Drag and drop it to ComfyUI to load.

Go through the drill

Every time you try to run a new workflow, you may need to do some or all of the following steps.

  1. Install ComfyUI Manager
  2. Install missing nodes
  3. Update everything

Install ComfyUI Manager

Install ComfyUI manager if you haven’t done so already. It provides an easy way to update ComfyUI and install missing nodes.

To install this custom node, go to the custom nodes folder in the PowerShell (Windows) or Terminal (Mac) App:

cd ComfyUI/custom_nodes

Install ComfyUI by cloning the repository under the custom_nodes folder.

git clone https://github.com/ltdrdata/ComfyUI-Manager

Restart ComfyUI completely. You should see a new Manager button appearing on the menu.

If you don’t see the Manager button, check the terminal for error messages. One common issue is GIT not installed. Installing it and repeat the steps should resolve the issue.

Install missing custom nodes

To install the custom nodes that are used by the workflow but you don’t have:

  1. Click Manager in the Menu.
  2. Click Install Missing custom Nodes.
  3. Restart ComfyUI completely.

Update everything

You can use ComfyUI manager to update custom nodes and ComfyUI itself.

  1. Click Manager in the Menu.
  2. Click Updates All. It may take a while to be done.
  3. Restart the ComfyUI and refresh the ComfyUI page.

Step 1: Set checkpoint model

Download the Realistic Vision model. Put it in the Comfyui > models > checkpoints folder.

Refresh the page and select the Realistic model in the Load Checkpoint node.

Step 2: Run the workflow

Click Queue Prompt to run the workflow.

Customization

You can disable the high-resolution fix by right-clicking the Hi Res Fix group > By Pass Group Node.

Change the seed value of the first KSampler to generate a different image.

Change image size and number of images by changing the values in the Empty Latent Image node.

Film Grain:

  • Adjust the intensity to make the film grains show more.
  • Don’t use the vignette setting as it lacks fine control.

Vignette Filter:

  • Adjust the feather_amount to control the transition between the vignette and the photo.
  • Adjust zoom to zoom in or out of the vignette.

Andrew

By Andrew

Andrew is an experienced software engineer with a specialization in Machine Learning and Artificial Intelligence. He is passionate about programming, art, and education. He has a doctorate degree in engineering.

2 comments

  1. Tried first thing (this workflow) after becoming a member. It did not work.
    1) A syntax error in JASON (SyntaxError: Unexpected non-whitespace character after JSON at position 4 (line 1 column 5))

    2) Missing Filmgrain and Vignett nodes (that Manager did not install )

Leave a comment

Your email address will not be published. Required fields are marked *