Visit ComfyUI Online for ready-to-use ComfyUI environment
ComfyUI-Fast-Style-Transfer is a ComfyUI node enabling rapid neural style transfer, adapted from the fast-neural-style-pytorch project. It currently supports basic inference functionality for efficient style transformations.
ComfyUI-Fast-Style-Transfer is an extension designed to bring the power of fast neural style transfer to the ComfyUI platform. This extension allows you to apply artistic styles from one image (the style image) to another image (the content image) quickly and efficiently. By leveraging neural networks, it can transform your photos into works of art that mimic the styles of famous paintings or any other artistic style you choose.
This extension is particularly useful for AI artists who want to experiment with different artistic styles without needing extensive technical knowledge. It simplifies the process of style transfer, making it accessible and easy to use.
At its core, ComfyUI-Fast-Style-Transfer uses a neural network to learn the style of a given image and then applies that style to another image. This process involves two main steps:
The extension currently supports basic inference functionality, allowing you to apply pre-trained styles to your images. This means you can quickly transform your photos using existing style models without needing to train new ones.
If you want to use custom styles, you can train your own models using the original repository's train.py
script. Once trained, you can transfer the .pth
model file into the ComfyUI/custom_nodes/ComfyUI-Fast-Style-Transfer/models
folder to use it within ComfyUI.
You can adjust the batch size to optimize the processing speed based on your GPU's VRAM. For example, on a setup with a 2060 GPU, a batch size of 12 uses approximately 5.9 GB of VRAM. Increasing the batch size can significantly reduce the training time.
The extension supports different models that can be used for style transfer. These models are pre-trained on various artistic styles and can be easily applied to your content images. If you want to create your own models, you can follow the training process described below.
To train your own style transfer models, you will need the following:
vgg
folder.TrainFastStyleTransfer
node. Select your style image using the load_image
node, adjust the batch size, and set other parameters as needed. Training a model can take up to 2 hours, so be patient.Here are some common issues you might encounter and their solutions:
custom_nodes
). If the problem persists, check for any error messages in the console and consult relevant forums or communities for help.nvidia-smi
command to monitor your current VRAM usage and find an optimal batch size.train.py
script from the original repository, then place the .pth
file in the models
folder.For more information, tutorials, and community support, check out the following resources:
© Copyright 2024 RunComfy. All Rights Reserved.