{"id":13603172,"url":"https://github.com/fofr/cog-style-transfer","last_synced_at":"2025-03-17T01:32:04.125Z","repository":{"id":233904648,"uuid":"788005853","full_name":"fofr/cog-style-transfer","owner":"fofr","description":"Copy the style from one image to another","archived":false,"fork":false,"pushed_at":"2024-04-19T13:03:49.000Z","size":73,"stargazers_count":37,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-14T00:55:05.961Z","etag":null,"topics":["ai","cog","comfyui","generative-ai","stable-diffusion","text-to-image"],"latest_commit_sha":null,"homepage":"https://replicate.com/fofr/style-transfer","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fofr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-17T15:44:09.000Z","updated_at":"2024-10-06T17:16:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e750fc5-6fcb-485b-a5b9-2256d1e155be","html_url":"https://github.com/fofr/cog-style-transfer","commit_stats":null,"previous_names":["fofr/cog-style-transfer"],"tags_count":0,"template":false,"template_full_name":"fofr/cog-comfyui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofr%2Fcog-style-transfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofr%2Fcog-style-transfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofr%2Fcog-style-transfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofr%2Fcog-style-transfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fofr","download_url":"https://codeload.github.com/fofr/cog-style-transfer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221670319,"owners_count":16861052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","cog","comfyui","generative-ai","stable-diffusion","text-to-image"],"created_at":"2024-08-01T18:01:55.255Z","updated_at":"2024-10-27T11:43:36.862Z","avatar_url":"https://github.com/fofr.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Style transfer\n\nRun this model on Replicate:\n\nhttps://replicate.com/fofr/style-transfer\n\nOr run it in ComfyUI:\n\nhttps://github.com/fofr/cog-style-transfer/blob/main/style-transfer-ui.json\n\nYou’ll need the following custom nodes:\n\n- [ComfyUI IPAdapter Plus](https://github.com/cubiq/ComfyUI_IPAdapter_plus/tree/1ac1cae)\n- [ComfyUI Essentials](https://github.com/cubiq/ComfyUI_essentials/tree/c9236fe)\n- [ComfyUI ControlNet Aux](https://github.com/Fannovel16/comfyui_controlnet_aux/tree/6d6f63c)\n\n## Developing locally\n\nClone this repository:\n\n```sh\ngit clone --recurse-submodules https://github.com/fofr/cog-style-transfer.git \u0026\u0026 cd cog-style-transfer/ComfyUI\n```\n\nCreate python venv and activate\n\n```sh\npython3 -m venv . \u0026\u0026 source bin/activate\n```\n\nInstall the required dependencies\n\n```sh\npip install -r requirements.txt\n```\n\nDownload dreamshaperXL_lightningDPMSDE.safetensors to models/checkpoints\n\n```sh\nwget https://huggingface.co/gingerlollipopdx/ModelsXL/resolve/main/dreamshaperXL_lightningDPMSDE.safetensors?download=true -O models/checkpoints/dreamshaperXL_lightningDPMSDE.safetensors\n```\n\nDownload CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors to models/clip_vision\n\n```sh\nwget 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.safetensors\n```\n\nDownload ip-adapter-plus_sdxl_vit-h.safetensors to models/ipadapter\n\n```sh\nwget 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.safetensors\n```\n\nDownload depth-zoe-xl-v1.0-controlnet.safetensors to models/controlnet\n\n```sh\nwget 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.safetensors\n```\n\nRun the [following script](https://github.com/fofr/cog-style-transfer/blob/main/scripts/clone_plugins.sh) to install all the custom nodes:\n\n```sh\n./scripts/clone_plugins.sh\n```\n\nFinally, install it, run it and enjoy it!\n\n```sh\npython3 main.py\n```\n\n### Running the Web UI from your Cog container\n\n1. **GPU Machine**: Start the Cog container and expose port 8188:\n```sh\nsudo cog run -p 8188 bash\n```\nRunning this command starts up the Cog container and let's you access it\n\n2. **Inside Cog Container**: Now that we have access to the Cog container, we start the server, binding to all network interfaces:\n```sh\ncd ComfyUI/\npython main.py --listen 0.0.0.0\n```\n\n3. **Local Machine**: Access the server using the GPU machine's IP and the exposed port (8188):\n`http://\u003cgpu-machines-ip\u003e:8188`\n\nWhen you goto `http://\u003cgpu-machines-ip\u003e:8188` you'll see the classic ComfyUI web form!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffofr%2Fcog-style-transfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffofr%2Fcog-style-transfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffofr%2Fcog-style-transfer/lists"}