Skip to content
Back to search

diffusers-skills

MarketplaceWorks with Claude CodeGitHub

Agent plugins published from the diffusers repository

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/huggingface/diffusers with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/huggingface/diffusers'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/huggingface-diffusers/badge.svg)](/listings/huggingface-diffusers)

HTML

<a href="/listings/huggingface-diffusers"><img src="/api/listings/huggingface-diffusers/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

We recommend installing πŸ€— Diffusers in a virtual environment from PyPI or Conda. For more details about installing [PyTorch](https://pytorch.org/get-started/locally/), please refer to their official documentation.

PyTorch

With `pip` (official package):

pip install --upgrade diffusers[torch]

With `conda` (maintained by the community):

conda install -c conda-forge diffusers

Apple Silicon (M1/M2) support

Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggingface.co/docs/diffusers/optimization/mps) guide.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json Β· Manifest Β· 14 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. {
  2. "name": "diffusers-skills",
  3. "description": "Agent plugins published from the diffusers repository",
  4. "owner": {
  5. "name": "The Hugging Face team"
  6. },
  7. "plugins": [
  8. {
  9. "name": "diffusers",
  10. "source": "./.ai",
  11. "description": "Conventions and task skills for contributing to diffusers"
  12. }
  13. ]
  14. }
README.md Β· README Β· 232 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. <!---
  2. Copyright 2022 - The HuggingFace Team. All rights reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <p align="center">
  14. <br>
  15. <img src="https://raw.githubusercontent.com/huggingface/diffusers/main/docs/source/en/imgs/diffusers_library.jpg" width="400"/>
  16. <br>
  17. <p>
  18. <p align="center">
  19. <a href="https://github.com/huggingface/diffusers/blob/main/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/huggingface/datasets.svg?color=blue"></a>
  20. <a href="https://github.com/huggingface/diffusers/releases"><img alt="GitHub release" src="https://img.shields.io/github/release/huggingface/diffusers.svg"></a>
  21. <a href="https://pepy.tech/project/diffusers"><img alt="GitHub release" src="https://static.pepy.tech/badge/diffusers/month"></a>
  22. <a href="CODE_OF_CONDUCT.md"><img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg"></a>
  23. <a href="https://twitter.com/diffuserslib"><img alt="X account" src="https://img.shields.io/twitter/url/https/twitter.com/diffuserslib.svg?style=social&label=Follow%20%40diffuserslib"></a>
  24. </p>
  25. πŸ€— Diffusers is the go-to library for state-of-the-art pretrained diffusion models for generating images, audio, and even 3D structures of molecules. Whether you're looking for a simple inference solution or training your own diffusion models, πŸ€— Diffusers is a modular toolbox that supports both. Our library is designed with a focus on [usability over performance](https://huggingface.co/docs/diffusers/conceptual/philosophy#usability-over-performance), [simple over easy](https://huggingface.co/docs/diffusers/conceptual/philosophy#simple-over-easy), and [customizability over abstractions](https://huggingface.co/docs/diffusers/conceptual/philosophy#tweakable-contributorfriendly-over-abstraction).
  26. πŸ€— Diffusers offers three core components:
  27. - State-of-the-art [diffusion pipelines](https://huggingface.co/docs/diffusers/api/pipelines/overview) that can be run in inference with just a few lines of code.
  28. - Interchangeable noise [schedulers](https://huggingface.co/docs/diffusers/api/schedulers/overview) for different diffusion speeds and output quality.
  29. - Pretrained [models](https://huggingface.co/docs/diffusers/api/models/overview) that can be used as building blocks, and combined with schedulers, for creating your own end-to-end diffusion systems.
  30. ## Installation
  31. We recommend installing πŸ€— Diffusers in a virtual environment from PyPI or Conda. For more details about installing [PyTorch](https://pytorch.org/get-started/locally/), please refer to their official documentation.
  32. ### PyTorch
  33. With `pip` (official package):
  34. ```bash
  35. pip install --upgrade diffusers[torch]
  36. ```
  37. With `conda` (maintained by the community):
  38. ```sh
  39. conda install -c conda-forge diffusers
  40. ```
  41. ### Apple Silicon (M1/M2) support
  42. Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggingface.co/docs/diffusers/optimization/mps) guide.
  43. ## Quickstart
  44. Generating outputs is super easy with πŸ€— Diffusers. To generate an image from text, use the `from_pretrained` method to load any pretrained diffusion model (browse the [Hub](https://huggingface.co/models?library=diffusers&sort=downloads) for 30,000+ checkpoints):
  45. ```python
  46. from diffusers import DiffusionPipeline
  47. import torch
  48. pipeline = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", dtype=torch.float16)
  49. pipeline.to("cuda")
  50. pipeline("An image of a squirrel in Picasso style").images[0]
  51. ```
  52. You can also dig into the models and schedulers toolbox to build your own diffusion system:
  53. ```python
  54. from diffusers import DDPMScheduler, UNet2DModel
  55. from PIL import Image
  56. import torch
  57. scheduler = DDPMScheduler.from_pretrained("google/ddpm-cat-256")
  58. model = UNet2DModel.from_pretrained("google/ddpm-cat-256").to("cuda")
  59. scheduler.set_timesteps(50)
  60. sample_size = model.config.sample_size
  61. noise = torch.randn((1, 3, sample_size, sample_size), device="cuda")
  62. input = noise
  63. for t in scheduler.timesteps:
  64. with torch.no_grad():
  65. noisy_residual = model(input, t).sample
  66. prev_noisy_sample = scheduler.step(noisy_residual, t, input).prev_sample
  67. input = prev_noisy_sample
  68. image = (input / 2 + 0.5).clamp(0, 1)
  69. image = image.cpu().permute(0, 2, 3, 1).numpy()[0]
  70. image = Image.fromarray((image * 255).round().astype("uint8"))
  71. image
  72. ```
  73. Check out the [Quickstart](https://huggingface.co/docs/diffusers/quicktour) to launch your diffusion journey today!
  74. ## How to navigate the documentation
  75. | **Documentation** | **What can I learn?** |
  76. |---------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  77. | [Quickstart](https://huggingface.co/docs/diffusers/quicktour) | A basic crash course for loading pipelines, generating outputs, and applying common inference optimizations. |
  78. | [Loading](https://huggingface.co/docs/diffusers/using-diffusers/loading) | Guides for how to load and configure all the components (pipelines, models, and schedulers) of the library, as well as how to use different schedulers. |
  79. | [Modular Diffusers](https://huggingface.co/docs/diffusers/main/en/modular_diffusers/overview) | Build flexible diffusion systems from modular pipeline components. |
  80. | [Optimization](https://huggingface.co/docs/diffusers/optimization/fp16) | Guides for how to optimize your diffusion model to run faster and consume less memory. |
  81. | [Training](https://huggingface.co/docs/diffusers/training/overview) | Guides for how to train a diffusion model for different tasks with different training techniques. |
  82. ## Contribution
  83. We ❀️ contributions from the open-source community!
  84. If you want to contribute to this library, please check out our [Contribution guide](https://huggingface.co/docs/diffusers/main/en/conceptual/contribution).
  85. If you are using an AI agent, please point it at the project conventions in [`.ai/`](https://github.com/huggingface/diffusers/tree/main/.ai) first (install them as a plugin with `claude plugin marketplace add huggingface/diffusers`, or a skill at a time with `diffusers-cli skills add <name>`) β€” see [Coding with AI agents](https://huggingface.co/docs/diffusers/main/en/conceptual/contribution#coding-with-ai-agents).
  86. You can look out for [issues](https://github.com/huggingface/diffusers/issues) you'd like to tackle to contribute to the library.
  87. - See [Good first issues](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) for general opportunities to contribute
  88. - See [New model/pipeline](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+pipeline%2Fmodel%22) to contribute exciting new diffusion models / diffusion pipelines
  89. - See [New scheduler](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22)
  90. Also, say πŸ‘‹ in our public Discord channel <a href="https://discord.gg/G7tWnz98XR"><img alt="Join us on Discord" src="https://img.shields.io/discord/823813159592001537?color=5865F2&logo=discord&logoColor=white"></a>. We discuss the hottest trends about diffusion models, help each other with contributions, personal projects or just hang out β˜•.
  91. ## Popular Tasks & Pipelines
  92. <table>
  93. <tr>
  94. <th>Task</th>
  95. <th>Pipeline</th>
  96. <th>πŸ€— Hub</th>
  97. </tr>
  98. <tr style="border-top: 2px solid black">
  99. <td>Unconditional Image Generation</td>
  100. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/ddpm"> DDPM </a></td>
  101. <td><a href="https://huggingface.co/google/ddpm-ema-church-256"> google/ddpm-ema-church-256 </a></td>
  102. </tr>
  103. <tr style="border-top: 2px solid black">
  104. <td>Text-to-Image</td>
  105. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/text2img">Stable Diffusion Text-to-Image</a></td>
  106. <td><a href="https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5"> stable-diffusion-v1-5/stable-diffusion-v1-5 </a></td>
  107. </tr>
  108. <tr>
  109. <td>Text-to-Image</td>
  110. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_unclip">unCLIP</a></td>
  111. <td><a href="https://huggingface.co/kakaobrain/karlo-v1-alpha"> kakaobrain/karlo-v1-alpha </a></td>
  112. </tr>
  113. <tr>
  114. <td>Text-to-Image</td>
  115. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/deepfloyd_if">DeepFloyd IF</a></td>
  116. <td><a href="https://huggingface.co/DeepFloyd/IF-I-XL-v1.0"> DeepFloyd/IF-I-XL-v1.0 </a></td>
  117. </tr>
  118. <tr>
  119. <td>Text-to-Image</td>
  120. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/kandinsky">Kandinsky</a></td>
  121. <td><a href="https://huggingface.co/kandinsky-community/kandinsky-2-2-decoder"> kandinsky-community/kandinsky-2-2-decoder </a></td>
  122. </tr>
  123. <tr style="border-top: 2px solid black">
  124. <td>Text-guided Image-to-Image</td>
  125. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/controlnet">ControlNet</a></td>
  126. <td><a href="https://huggingface.co/lllyasviel/sd-controlnet-canny"> lllyasviel/sd-controlnet-canny </a></td>
  127. </tr>
  128. <tr>
  129. <td>Text-guided Image-to-Image</td>
  130. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/pix2pix">InstructPix2Pix</a></td>
  131. <td><a href="https://huggingface.co/timbrooks/instruct-pix2pix"> timbrooks/instruct-pix2pix </a></td>
  132. </tr>
  133. <tr>
  134. <td>Text-guided Image-to-Image</td>
  135. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/img2img">Stable Diffusion Image-to-Image</a></td>
  136. <td><a href="https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5"> stable-diffusion-v1-5/stable-diffusion-v1-5 </a></td>
  137. </tr>
  138. <tr style="border-top: 2px solid black">
  139. <td>Text-guided Image Inpainting</td>
  140. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint">Stable Diffusion Inpainting</a></td>
  141. <td><a href="https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-inpainting"> stable-diffusion-v1-5/stable-diffusion-inpainting </a></td>
  142. </tr>
  143. <tr style="border-top: 2px solid black">
  144. <td>Image Variation</td>
  145. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/image_variation">Stable Diffusion Image Variation</a></td>
  146. <td><a href="https://huggingface.co/lambdalabs/sd-image-variations-diffusers"> lambdalabs/sd-image-variations-diffusers </a></td>
  147. </tr>
  148. <tr style="border-top: 2px solid black">
  149. <td>Super Resolution</td>
  150. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/upscale">Stable Diffusion Upscale</a></td>
  151. <td><a href="https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler"> stabilityai/stable-diffusion-x4-upscaler </a></td>
  152. </tr>
  153. <tr>
  154. <td>Super Resolution</td>
  155. <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/latent_upscale">Stable Diffusion Latent Upscale</a></td>
  156. <td><a href="https://huggingface.co/stabilityai/sd-x2-latent-upscaler"> stabilityai/sd-x2-latent-upscaler </a></td>
  157. </tr>
  158. </table>
  159. ## Popular libraries using 🧨 Diffusers
  160. - https://github.com/microsoft/TaskMatrix
  161. - https://github.com/invoke-ai/InvokeAI
  162. - https://github.com/InstantID/InstantID
  163. - https://github.com/apple/ml-stable-diffusion
  164. - https://github.com/Sanster/lama-cleaner
  165. - https://github.com/IDEA-Research/Grounded-Segment-Anything
  166. - https://github.com/ashawkey/stable-dreamfusion
  167. - https://github.com/deep-floyd/IF
  168. - https://github.com/bentoml/BentoML
  169. - https://github.com/bmaltais/kohya_ss
  170. - +14,000 other amazing GitHub repositories πŸ’ͺ
  171. Thank you for using us ❀️.
  172. ## Credits
  173. This library concretizes previous work by many different authors and would not have been possible without their great research and implementations. We'd like to thank, in particular, the following implementations which have helped us in our development and without which the API could not have been as polished today:
  174. - @CompVis' latent diffusion models library, available [here](https://github.com/CompVis/latent-diffusion)
  175. - @hojonathanho original DDPM implementation, available [here](https://github.com/hojonathanho/diffusion) as well as the extremely useful translation into PyTorch by @pesser, available [here](https://github.com/pesser/pytorch_diffusion)
  176. - @ermongroup's DDIM implementation, available [here](https://github.com/ermongroup/ddim)
  177. - @yang-song's Score-VE and Score-VP implementations, available [here](https://github.com/yang-song/score_sde_pytorch)
  178. We also want to thank @heejkoo for the very helpful overview of papers, code and resources on diffusion models, available [here](https://github.com/heejkoo/Awesome-Diffusion-Models) as well as @crowsonkb and @rromb for useful discussions and insights.
  179. ## Citation
  180. ```bibtex
  181. @misc{von-platen-etal-2022-diffusers,
  182. author = {Patrick von Platen and Suraj Patil and Anton Lozhkov and Pedro Cuenca and Nathan Lambert and Kashif Rasul and Mishig Davaadorj and Dhruv Nair and Sayak Paul and William Berman and Yiyi Xu and Steven Liu and Thomas Wolf},
  183. title = {Diffusers: State-of-the-art diffusion models},
  184. year = {2022},
  185. publisher = {GitHub},
  186. journal = {GitHub repository},
  187. howpublished = {\url{https://github.com/huggingface/diffusers}}
  188. }
  189. ```

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.