Skip to content

Aim to create Van Gogh style transfer functionality using Stable Diffusion and Canny Control Net

Notifications You must be signed in to change notification settings

deniztemur00/VanGogh-Style-Transfer-with-Stable-Diffusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComfyUI Van Gogh Style Transfer

This project demonstrates a Van Gogh style transfer using ComfyUI. The repository includes a complete workflow file, Python scripts for preprocessing and style transfer, and sample outputs.

Examples

Below are some sample images showing the before and after Van Gogh style transformation:

Before After
Before Image 1 After Image 1
Before After
Before Image 2 After Image 2
Before After
Before Image 3 After Image 3
Before After
Before Image 4 After Image 4
Before After
Before Image 5 After Image 5

Setup Process

Prerequisites

  • Python 3.8 or higher
  • ComfyUI installed
  1. Download models and files from the following links:

  2. Copy the contents inside "my_custom_nodes" to "comfyUI\custom_nodes" folder.

  3. Navigate to "custom_nodes" folder inside comfyUI and install the required Python packages.

    pip install -r requirements.txt
  4. Import the workflow file into ComfyUI:

    • Open ComfyUI.
    • Navigate to the workflow import section.

    Important Note

    • There are two versions of the workflow. Highly detailed style transfer nodes can sometimes generate noisy images. To avoid this, two different workflows are provided. *_v1 versions are more stable and generate better results. But they have less control over style transfer. *_v2 versions have more control over style transfering. But depending on the input parameters, tensors could deviate from the control net output distribution. This could result in noisy images. To avoid this, you can use the *_v1 versions of the workflows.

    1. If you want to generate images faster and slightly less quality Import the canny_diffusion_finetuned.json file located in the workflows folder of this repository. It uses only one control net to get results faster.

    2. If you want to generate better images Import the control_net_chaining_v2.json file located in the workflows folder of this repository. It chains two differenct control nets to get better results.

Usage Instructions

  1. Open the workflow in ComfyUI.

  2. Upload the image you want to apply the Van Gogh style to.

  3. Run the workflow.

  4. The output image will be displayed in the output node.

Additional Notes

About

Aim to create Van Gogh style transfer functionality using Stable Diffusion and Canny Control Net

Resources

Stars

Watchers

Forks

Languages