{"id":23233426,"url":"https://github.com/ExponentialML/ComfyUI_VisualStylePrompting","last_synced_at":"2025-08-19T18:32:21.280Z","repository":{"id":227765490,"uuid":"772341177","full_name":"ExponentialML/ComfyUI_VisualStylePrompting","owner":"ExponentialML","description":"ComfyUI Version of \"Visual Style Prompting with Swapping Self-Attention\"","archived":false,"fork":false,"pushed_at":"2024-05-23T00:12:41.000Z","size":2965,"stargazers_count":281,"open_issues_count":15,"forks_count":9,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-12-19T03:02:42.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExponentialML.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-03-15T02:07:23.000Z","updated_at":"2024-12-12T17:05:03.000Z","dependencies_parsed_at":"2024-03-21T23:29:11.635Z","dependency_job_id":"7d3d5d55-0c7a-48dd-bc20-b679730f230c","html_url":"https://github.com/ExponentialML/ComfyUI_VisualStylePrompting","commit_stats":null,"previous_names":["exponentialml/comfyui_visualstyleprompting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ExponentialML/ComfyUI_VisualStylePrompting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExponentialML%2FComfyUI_VisualStylePrompting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExponentialML%2FComfyUI_VisualStylePrompting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExponentialML%2FComfyUI_VisualStylePrompting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExponentialML%2FComfyUI_VisualStylePrompting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExponentialML","download_url":"https://codeload.github.com/ExponentialML/ComfyUI_VisualStylePrompting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExponentialML%2FComfyUI_VisualStylePrompting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271200168,"owners_count":24717387,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-19T03:01:39.658Z","updated_at":"2025-08-19T18:32:20.778Z","avatar_url":"https://github.com/ExponentialML.png","language":"Python","readme":"# ComfyUI_VisualStylePrompting\nComfyUI Version of \"Visual Style Prompting with Swapping Self-Attention\"\n\n![image](workflows/workflow_simple.png)\n*credits to @pamparamm*\n\n\u003e [!NOTE]\n\u003e This is WIP.\n\u003e\n\u003e Major changes were made. Please make sure to update your workflows. An updated workflow can be found in the `workflows` directory.\n\nImplements the very basics of [Visual Style Prompting](https://github.com/naver-ai/Visual-Style-Prompting) by Naver AI.\n\n## Getting Started\n\nClone the repository into your `custom_nodes` folder, and you'll see `Apply Visual Style Prompting` node. It should be placed between your sampler and inputs like the example image.\nThis has currently only been tested with 1.5 based models.\n\n- `reference_latent`: VAE-encoded image you wish to reference,\n- `positive`: Positive conditioning describing output image.\n- `reference_cond`: Conditioning describing reference image.\n- `enabled`: Enables or disables the effect. Note that this node will still be hooked even after disabling unless you remove it.\n- `denoise`: Works the same way Img2Img works, but utilized with reference and / or init images (this is experimental).\n- `input_blocks`: Focuses attention on the encoder layers.\n- `skip_input_layers`: Number of layers in the input block that will **not** have swapping self-attention applied to them.\n- `middle_block`: Focuses attention on the middle layers.\n- `skip_middle_layers`: Number of layers in the middle block that will **not** have swapping self-attention applied to them.\n- `output_blocks`: Focuses attention on the decoder layers.\n- `skip_output_layers`: Number of layers in the output block that will **not** have swapping self-attention applied to them.\n\n\u003e [!TIP]\n\u003e In order to get the best results, you must engineer both `positive` and `reference_cond` prompts correctly. Focus on the details you want to derive from the image reference, and the details you wish to see in the output.\n\u003e\n\u003e The example workflow uses the following for the `positive` cond:\n\u003e\n\u003e `orange fox, origami, deep colors, shading, canon 60d`.\n\u003e\n\u003e And for the `reference_cond`:\n\u003e\n\u003e `origami figurine`\n\n## Notes\n\n- Currently, this method utilized the VAE Encode \u0026 Inpaint method as it needs to iteralively denoise on each step.\nDue to how this method works, you'll always get two outputs. To remove the reference latent from the output, simple use a Batch Index Select node.\n\n- For legacy functionality, please pull this [PR](https://github.com/ExponentialML/ComfyUI_VisualStylePrompting/tree/712a41579e730c5db87d68c2dcde4e92c48ab2cc).\n","funding_links":[],"categories":["Workflows (3395) sorted by GitHub Stars","All Workflows Sorted by GitHub Stars"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FExponentialML%2FComfyUI_VisualStylePrompting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FExponentialML%2FComfyUI_VisualStylePrompting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FExponentialML%2FComfyUI_VisualStylePrompting/lists"}