{"id":23233520,"url":"https://github.com/Extraltodeus/Skimmed_CFG","last_synced_at":"2025-08-19T18:32:40.069Z","repository":{"id":251525317,"uuid":"837671774","full_name":"Extraltodeus/Skimmed_CFG","owner":"Extraltodeus","description":"A powerful anti-burn allowing much higher CFG scales for latent diffusion models (for ComfyUI)","archived":false,"fork":false,"pushed_at":"2024-10-25T20:59:10.000Z","size":1852,"stargazers_count":184,"open_issues_count":5,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-18T00:05:19.617Z","etag":null,"topics":["artificial-intelligence","comfyui","comfyui-nodes","generative-ai","stable-diffusion"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Extraltodeus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-03T17:01:28.000Z","updated_at":"2025-05-17T16:37:12.000Z","dependencies_parsed_at":"2024-12-18T05:33:53.604Z","dependency_job_id":null,"html_url":"https://github.com/Extraltodeus/Skimmed_CFG","commit_stats":null,"previous_names":["extraltodeus/skimmed_cfg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Extraltodeus/Skimmed_CFG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2FSkimmed_CFG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2FSkimmed_CFG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2FSkimmed_CFG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2FSkimmed_CFG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Extraltodeus","download_url":"https://codeload.github.com/Extraltodeus/Skimmed_CFG/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2FSkimmed_CFG/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271200293,"owners_count":24717417,"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":["artificial-intelligence","comfyui","comfyui-nodes","generative-ai","stable-diffusion"],"created_at":"2024-12-19T03:01:49.625Z","updated_at":"2025-08-19T18:32:39.703Z","avatar_url":"https://github.com/Extraltodeus.png","language":"Python","funding_links":["https://www.patreon.com/extraltodeus"],"categories":["Workflows (3395) sorted by GitHub Stars","All Workflows Sorted by GitHub Stars"],"sub_categories":[],"readme":"\n# Skimmed_CFG\nA powerful anti-burn allowing much higher CFG scales for latent diffusion models (for ComfyUI)\n\nCFG below at: 6/8/12/16/24/32, skimming scale at 6\n\n![6_8_12_16_24_32](https://github.com/user-attachments/assets/6eb4beb6-0579-4f3e-a85e-e23b6472ebae)\n\n\nSimply plug after the model loader (same for all the fours nodes):\n\n![image](https://github.com/user-attachments/assets/b188947c-6226-42ff-b868-e6a44bbfe590)\n\nTested with SD3.5 turbo. To make it work set the skimming scale at 2~2.5\n\n## nodes: \n- Skimmed CFG: My version first version of this, works like a charm!\n- Skimmed CFG - replace: replace the values within the negative by those in the positive prediction, nullifying (actually giving an equivalent scale of 1) the effect of values targeted by the filter.\n- Skimmed CFG - linear interpolation: instead of replacing, does a linear interpolation in between the values. Highly recommanded!\n- Skimmed CFG - linear interpolation dual scales: Two scales. One named \"positive\" and one.. well \"negative\". The name is more related to a visualy intuitive relation rather than fully from the predictions. A higher positive will tend to go towards high saturations and vice versa with the other slider.\n- Skimmed CFG - Difference CFG: Other algorithms based on changes depending on the scale. Brings back what goes too far in comparison.\n- Skimmed CFG - Timed flip: To be used with normal scales. Enhances the randomness and overall quality of the image. A bit less of an antiburn and a lot more of an enhancer. SDE Samplers react extremely well to it.\n\n## special option (first node only):\n- full_skim_negative: fully skim some part of the conflicting influence.\n- disable_flipping_filter: the skimming CFG will have much more control. It is meant to be used with the full_skim_negative toggle on. (the last image of this readme is an example)\n\n## Side-effects:\n\n- better prompt adherence\n- sharper images\n- less mess / more randomness due to less conflicts in between the positive and negative predictions\n- something something sometimes fused fingers with too low skimming CFG scale and too low amount of steps.\n\n\n## Tips:\n\n- The skimming scale is basically how much do you like them burned. 3 was the intended scale but suit to your needs.\n- The SDE samplers can still burn a little but much less\n- The SDE samplers can still totaly do nonsense with low steps (not with the node named \"Timed flip\")\n- A too low skimming scale may require to do more steps\n- Recommanded skim: 2-3 for maximum antiburn, 5-7 for colorful/strong style. 4 is cruise scale.\n- a good negative prompt is a style negative prompt\n- to use super high scales it is not a bad idea to cut the negative before the end. You can find in [this repository](https://github.com/Extraltodeus/pre_cfg_comfy_nodes_for_ComfyUI/tree/main) a node named \"Support empty uncond\". Plug it after the skimmed cfg node. Then menu\u003eadvanced\u003econditioning\u003eConditioningSetTimestepRange and set the and at ~65%. This will avoid potential artifacts.\n\n\n\n# Pro tip:\n\n[It would be actually nice to have some support!](https://www.patreon.com/extraltodeus) because like this I will continue to share my findings!\n\nDid you know that my first activity is to write creative model merging functions?\n\nWhile the code is too much of a mess to be shared, I do expose and share my models. You can find them in this [gallery](https://github.com/Extraltodeus/shared_models_galleries)! 😁\n\n\n\n# Other examples with a CFG at 100\n\n### Base image 🤭\n\n![00417UI_00001_](https://github.com/user-attachments/assets/0b4a5ae2-4815-456f-a3ff-4280d311842b)\n\n### Linear interpolation dual scale 10/0\n\n![00409UI_00001_](https://github.com/user-attachments/assets/9bcf9121-4341-4948-94e7-2aebca50a4d3)\n\n### Linear interpolation dual scale 5/0\n\n![00416UI_00001_](https://github.com/user-attachments/assets/f51365fa-9553-43a1-a060-e2b545b1dc74)\n\n### Linear interpolation scale 5\n\n![00407UI_00001_](https://github.com/user-attachments/assets/ead094fd-a74c-4722-a393-63a9bf738b10)\n\n### Replace\n\n![00405UI_00001_](https://github.com/user-attachments/assets/8c14a7a7-6b04-4d4b-9264-4651b3134186)\n\n### Skimmed CFG node skimming scale at 4\n\n![00419UI_00001_](https://github.com/user-attachments/assets/0f84ce0a-5547-4594-aff4-9b67eeb3bdf2)\n\n### Skimmed CFG node skimming scale at 4 with razor skim\n\n![00420UI_00001_](https://github.com/user-attachments/assets/861b7c42-8f48-4123-904e-bd1ada973595)\n\n### full_skim_negative / disable_flipping_filter / skimming scale at 6 / CFG scale at 32\n\n![00002UI_00002_](https://github.com/user-attachments/assets/85f7ec8c-d7ed-4f7c-91ee-8e704ca9833a)\n\n_do not lick the screen_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FExtraltodeus%2FSkimmed_CFG","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FExtraltodeus%2FSkimmed_CFG","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FExtraltodeus%2FSkimmed_CFG/lists"}