{"id":23233867,"url":"https://github.com/Extraltodeus/noise_latent_perlinpinpin","last_synced_at":"2025-08-19T19:31:01.663Z","repository":{"id":188114520,"uuid":"678129372","full_name":"Extraltodeus/noise_latent_perlinpinpin","owner":"Extraltodeus","description":"This allows to create latent spaces filled with perlin-based noise that can actually be used by the samplers.","archived":false,"fork":false,"pushed_at":"2024-08-13T14:19:11.000Z","size":86,"stargazers_count":33,"open_issues_count":6,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-17T00:31:53.649Z","etag":null,"topics":["comfyui","perlin-noise","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":"2023-08-13T19:21:39.000Z","updated_at":"2024-12-06T08:42:17.000Z","dependencies_parsed_at":"2024-06-03T04:42:27.780Z","dependency_job_id":"a8fd1c42-b134-4a71-a20e-2b1a9efb1ad3","html_url":"https://github.com/Extraltodeus/noise_latent_perlinpinpin","commit_stats":null,"previous_names":["extraltodeus/noise_latent_perlinpinpin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2Fnoise_latent_perlinpinpin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2Fnoise_latent_perlinpinpin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2Fnoise_latent_perlinpinpin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Extraltodeus%2Fnoise_latent_perlinpinpin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Extraltodeus","download_url":"https://codeload.github.com/Extraltodeus/noise_latent_perlinpinpin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230367781,"owners_count":18215326,"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":["comfyui","perlin-noise","stable-diffusion"],"created_at":"2024-12-19T03:02:05.892Z","updated_at":"2024-12-19T03:02:19.610Z","avatar_url":"https://github.com/Extraltodeus.png","language":"Python","funding_links":["https://ko-fi.com/extraltodeus"],"categories":["All Workflows Sorted by GitHub Stars","Workflows (3395) sorted by GitHub Stars"],"sub_categories":[],"readme":"# noise_latent_perlinpinpin\nThis allows to create latent spaces filled with perlin-based noise that can actually be used by the samplers.\n\n# Update!\nI simplified the algorith to now be able to support all resolutions (you should keep the same aspect ratio if you're upscaling however).\nIt is also much more simple to use as well as it will have no artifacts.\n\nThe simple trick to break the perlin pattern is now the following line:\n\n    noise = torch.remainder(torch.abs(noise)*1000000,11)/11\n\nThis just detroys the smooth pattern while keeping it predictable at all scales.\n\n\n# installation:\nJust drop the .py file in your custom nodes folder or download the repository as zip and put it in the custom nodes folder.\n\nYou will also need BlenderNeko noise related nodes to use this and the workflow:\n\nhttps://github.com/BlenderNeko/ComfyUI_Noise\n\n[I highly recommend to use city96 latent upscaler in order to upscale the latent in the middle of the generation if you want to use this node for better upscales!](https://github.com/city96/SD-Latent-Upscaler)\n\nA workflow using his node is within the house picture at the end of the readme.\n\n# known limitation:\n- You should keep the exact same aspect ratios if you want to upscale or the patterns will not match. ⚠⚠⚠⚠⚠⚠\n\n# Use\n\nI've included a workflow with notes in it to give you the basics but this is uncharted territory.\n\nEuler works good with normal noise, dpmpp2m with karras is pretty nice.\n\n![image](https://github.com/Extraltodeus/noise_latent_perlinpinpin/assets/15731540/22b5e919-8d05-491b-af0c-7c62a78eb6d7)\n\nNow you can reinject the same noise pattern after an upscale and get more coherent results.\n\n# Example / Idea\n\nThis Perlin Merlin Rabbit has been made with SDXL using the perlin based noise.\n\nThe workflow has been noisy perlin injection (defaults settings from the shared node) -\u003e SDXL Base (15 steps) -\u003e VAE decode -\u003e lanczos resize (x1.5) -\u003e VAE encode -\u003e same seed noisy perlin injection (but 1.5x bigger) -\u003e SDXL refiner (5 steps)\n\nThe lanczos resize nodes are [here](https://github.com/Extraltodeus/CustomComfyUINodes/blob/main/image_lanczos.py) and [here](https://github.com/Extraltodeus/CustomComfyUINodes/blob/main/image_lanczos_to_res.py)\n\n![00296UI_00001_](https://github.com/Extraltodeus/noise_latent_perlinpinpin/assets/15731540/cd06e1e8-e5bd-461a-8e54-f114a83afdf9)\n\n\nComfy workflow included in this image. It has been upscaled x2 mid generation using SD1.5 (realistic vision 30). BNK_Noise generator is present yet disconnected (delete it if you don't have it then), it uses [city96 latent upscaler](https://github.com/city96/SD-Latent-Upscaler):\n\n![00049UI_00001_](https://github.com/Extraltodeus/noise_latent_perlinpinpin/assets/15731540/823e945f-a00b-4101-87c2-4fa776004250)\n\n# Another comparison:\n\nUpscaled with perlin-based noise:\n\n![261039117-ce59f1cb-f1d7-42ad-931c-996e6e952eba](https://github.com/Extraltodeus/noise_latent_perlinpinpin/assets/15731540/65e1ed88-89fc-4df2-9301-09468b61122a)\n\nHere the noise that has been injected in the latent space after the upscale is the usual noise:\n\n![261060650-c56fd782-6e24-49c6-946d-53c199d7272d](https://github.com/Extraltodeus/noise_latent_perlinpinpin/assets/15731540/accf59c8-d268-4cc8-af60-4b32b1fd76e6)\n\nIt think that we can conclude that it works ;)\n\n\nIf you like my work and don't want me to starve don't hesitate to check my [ko-fi page](https://ko-fi.com/extraltodeus)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FExtraltodeus%2Fnoise_latent_perlinpinpin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FExtraltodeus%2Fnoise_latent_perlinpinpin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FExtraltodeus%2Fnoise_latent_perlinpinpin/lists"}