{"id":15066226,"url":"https://github.com/kadirnar/diffusersplus","last_synced_at":"2026-03-17T20:02:45.141Z","repository":{"id":173420825,"uuid":"650739269","full_name":"kadirnar/diffusersplus","owner":"kadirnar","description":"This project is under development.","archived":false,"fork":false,"pushed_at":"2023-08-20T15:55:10.000Z","size":15211,"stargazers_count":23,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-02T08:45:49.792Z","etag":null,"topics":["controlnet","diffusers","diffusion","diffusion-models","stable-diffusion"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/kadirnar.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":"2023-06-07T17:48:45.000Z","updated_at":"2024-07-25T07:47:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"795fe383-72b0-4d7d-83f9-a55939dbb9cb","html_url":"https://github.com/kadirnar/diffusersplus","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"a6ea34bb2f4cc3c84d497044832228559f20e9e3"},"previous_names":["kadirnar/image2video-custom-pipeline","kadirnar/custom-diffusion"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kadirnar/diffusersplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fdiffusersplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fdiffusersplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fdiffusersplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fdiffusersplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kadirnar","download_url":"https://codeload.github.com/kadirnar/diffusersplus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadirnar%2Fdiffusersplus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["controlnet","diffusers","diffusion","diffusion-models","stable-diffusion"],"created_at":"2024-09-25T01:03:57.528Z","updated_at":"2026-03-17T20:02:45.124Z","avatar_url":"https://github.com/kadirnar.png","language":"Jupyter Notebook","readme":"\u003cdiv align=\"center\"\u003e\r\n\u003ch2\u003e\r\n     Diffusers++: A User-Friendly and Diffusers-Based Library.\r\n\u003c/h2\u003e \r\n\u003cdiv\u003e\r\n    \u003ca href=\"https://pypi.org/project/diffusersplus\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/pypi/pyversions/diffusersplus.svg?color=%2334D058\" alt=\"Supported Python versions\"\u003e\r\n    \u003c/a\u003e\r\n    \u003ca href=\"https://badge.fury.io/py/diffusersplus\"\u003e\u003cimg src=\"https://badge.fury.io/py/diffusersplus.svg\" alt=\"pypi version\"\u003e\u003c/a\u003e\r\n    \u003ca href=\"https://huggingface.co/spaces/ArtGAN/Image-Diffusion-WebUI\"\u003e\u003cimg src=\"https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg\" alt=\"HuggingFace Spaces\"\u003e\u003c/a\u003e\r\n\u003c/div\u003e\r\n\u003c/div\u003e\r\n\r\n\r\n## Installation\r\n```bash\r\npip install diffusersplus\r\n```\r\n\r\n## Usage\r\nTo use the diffusersplus library, follow the steps below for different tasks:\r\n\r\n### Stable Diffusion Text2Image Generate:\r\n```python\r\nfrom diffusersplus import diffusion_pipeline\r\n\r\nmodel = diffusion_pipeline(\r\n    task_id=\"stable-txt2img\", \r\n    stable_model_id=\"dreamlike-art/dreamlike-anime-1.0\", \r\n    scheduler_name=\"DDIM\"\r\n)\r\n\r\noutput = model(\r\n    prompt=\"A photo of an anime character\",\r\n    negative_prompt=\"bad\",\r\n    num_images_per_prompt=1,\r\n    num_inference_steps=30,\r\n    guidance_scale=7.0,\r\n    guidance_rescale=0.0,\r\n    generator_seed=0,\r\n    height=512,\r\n    width=512,\r\n)\r\n```\r\n\r\n### Stable Diffusion Image2Image Generate:\r\n\r\n```python\t\r\nfrom diffusersplus import diffusion_pipeline\r\n\r\nmodel = diffusion_pipeline(\r\n    task_id=\"stable-img2img\",\r\n    stable_model_id=\"dreamlike-art/dreamlike-anime-1.0\",\r\n    scheduler_name=\"DDIM\"\r\n)\r\n\r\noutput = model(\r\n    image_path=\"../data/image.png\",\r\n    prompt=\"A photo of a cat.\",\r\n    negative_prompt=\"bad\",\r\n    num_images_per_prompt=1,\r\n    num_inference_steps=50,\r\n    guidance_scale=7.0,\r\n    strength=0.5,\r\n    generator_seed=0,\r\n    resize_type=\"center_crop_and_resize\",\r\n    crop_size=512,\r\n    height=512,\r\n    width=512,\r\n)\r\n```\r\n\r\n### Stable Diffusion Upscale:\r\n```python\r\nfrom diffusersplus import diffusion_pipeline\r\n\r\nmodel = diffusion_pipeline(\r\n    task_id=\"stable-upscale\",\r\n    stable_model_id=\"stabilityai/stable-diffusion-x4-upscaler\",\r\n    scheduler_name=\"DDIM\"\r\n)\r\n\r\noutput = model(\r\n    image_path=\"../data/image.png\",\r\n    prompt=\"A photo of a anime character.\",\r\n    negative_prompt=\"bad\",\r\n    resize_type=\"center_crop_and_resize\",\r\n    noise_level=20,\r\n    num_images_per_prompt=1,\r\n    num_inference_steps=20,\r\n    guidance_scale=7.0,\r\n    generator_seed=0,\r\n)\r\n```\r\n### Controlnet:\r\n```python\r\nfrom diffusersplus import diffusion_pipeline\r\n\r\nmodel = diffusion_pipeline(\r\n    task_id=\"controlnet\",\r\n    stable_model_id=\"dreamlike-art/dreamlike-anime-1.0\",\r\n    controlnet_model_id=\"lllyasviel/sd-controlnet-canny\",\r\n    scheduler_name=\"DDIM\",\r\n)\r\noutput = model(\r\n    image_path=\"../data/image.png\",\r\n    prompt=\"A photo of cat.\",\r\n    negative_prompt=\"bad\",\r\n    height=512,\r\n    width=512,\r\n    preprocess_type=\"Canny\",\r\n    resize_type=\"center_crop_and_resize\",\r\n    guess_mode=False,\r\n    num_images_per_prompt=1,\r\n    num_inference_steps=50,\r\n    guidance_scale=7.0,\r\n    controlnet_conditioning_scale=0.2,\r\n    generator_seed=0,\r\n)\r\n```\r\n\r\n### Controlnet Inpaint:\r\n```python\r\nfrom diffusersplus import diffusion_pipeline\r\n\r\nmodel = diffusion_pipeline(\r\n    task_id=\"controlnet-inpaint\",\r\n    stable_model_id=\"dreamlike-art/dreamlike-anime-1.0\",\r\n    controlnet_model_id=\"lllyasviel/sd-controlnet-canny\",\r\n    scheduler_name=\"DDIM\",\r\n)\r\noutput = model(\r\n    image_path=\"../data/image.png\",\r\n    mask_path=\"../data/mask_image.png\",\r\n    prompt=\"A photo of a cat.\",\r\n    negative_prompt=\"bad\",\r\n    height=512,\r\n    width=512,\r\n    preprocess_type=\"Canny\",\r\n    resize_type=\"center_crop_and_resize\",\r\n    strength=0.5,\r\n    guess_mode=False,\r\n    num_images_per_prompt=1,\r\n    num_inference_steps=50,\r\n    guidance_scale=7.0,\r\n    controlnet_conditioning_scale=1.0,\r\n    generator_seed=0,\r\n)\r\n```\r\n\r\n### Controlnet Image2Image:\r\n```python\r\nfrom diffusersplus import diffusion_pipeline\r\n\r\nmodel = diffusion_pipeline(\r\n    task_id=\"controlnet-img2img\",\r\n    stable_model_id=\"dreamlike-art/dreamlike-anime-1.0\",\r\n    controlnet_model_id=\"lllyasviel/sd-controlnet-canny\",\r\n    scheduler_name=\"DDIM\",\r\n)\r\noutput = model(\r\n    image_path=\"../data/image.png\",\r\n    prompt=\"A photo of a cat.\",\r\n    negative_prompt=\"bad\",\r\n    height=512,\r\n    width=512,\r\n    preprocess_type=\"Canny\",\r\n    resize_type=\"center_crop_and_resize\",\r\n    guess_mode=False,\r\n    num_images_per_prompt=1,\r\n    num_inference_steps=20,\r\n    guidance_scale=7.0,\r\n    controlnet_conditioning_scale=1.0,\r\n    strength=0.5,\r\n    generator_seed=0,\r\n)\r\n\r\n```\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadirnar%2Fdiffusersplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkadirnar%2Fdiffusersplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadirnar%2Fdiffusersplus/lists"}