Run this model on Replicate:
https://replicate.com/fofr/style-transfer
Or run it in ComfyUI:
https://github.com/fofr/cog-style-transfer/blob/main/style-transfer-ui.json
You’ll need the following custom nodes:
Clone this repository:
git clone --recurse-submodules https://github.com/fofr/cog-style-transfer.git && cd cog-style-transfer/ComfyUICreate python venv and activate
python3 -m venv . && source bin/activateInstall the required dependencies
pip install -r requirements.txtDownload dreamshaperXL_lightningDPMSDE.safetensors to models/checkpoints
wget https://huggingface.co/gingerlollipopdx/ModelsXL/resolve/main/dreamshaperXL_lightningDPMSDE.safetensors?download=true -O models/checkpoints/dreamshaperXL_lightningDPMSDE.safetensorsDownload CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors to models/clip_vision
wget https://huggingface.co/h94/IP-Adapter/resolve/main/models/image_encoder/model.safetensors?download=true -O models/checkpoints/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensorsDownload ip-adapter-plus_sdxl_vit-h.safetensors to models/ipadapter
wget https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/ip-adapter-plus_sdxl_vit-h.safetensors?download=true -O models/ipadapter/ip-adapter-plus_sdxl_vit-h.safetensorsDownload depth-zoe-xl-v1.0-controlnet.safetensors to models/controlnet
wget https://huggingface.co/SargeZT/controlnet-sd-xl-1.0-depth-16bit-zoe/resolve/main/depth-zoe-xl-v1.0-controlnet.safetensors?download=true -O models/controlnet/depth-zoe-xl-v1.0-controlnet.safetensorsRun the following script to install all the custom nodes:
./scripts/clone_plugins.shFinally, install it, run it and enjoy it!
python3 main.pysudo cog run -p 8188 bashRunning this command starts up the Cog container and let's you access it
cd ComfyUI/
python main.py --listen 0.0.0.0http://<gpu-machines-ip>:8188
When you goto http://<gpu-machines-ip>:8188 you'll see the classic ComfyUI web form!