huggingface / huggingface/diffusers

VaeImageProcessor.blur() docstring is missing blur_factor and has a copy-pasted description

Offen Anfängerfreundlich
#14,209 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug needs-code-example pipelines
Vorherrschende Sprache
Python
Sterne
34.5k
Forks
7.3k
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
91

Beschreibung

`VaeImageProcessor.blur()`'s docstring is missing the `blur_factor` parameter entirely, and its
`Returns`/description text appears to be copy-pasted from a different method — it currently
describes converting an image to grayscale, not blurring it.

**Location:** `src/diffusers/image_processor.py`, `VaeImageProcessor.blur()`, around line 271.

**Proposed fix:** add the missing `blur_factor` entry to the `Args` section and correct the
description to accurately describe the blur behavior, matching the style of nearby docstrings
in the same file (1-3 sentences, no more).

I have a small, single-file fix ready and would like to open a PR for this if a maintainer can
confirm it's welcome — happy to follow whatever review process you prefer.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Open src/diffusers/image_processor.py and read VaeImageProcessor.blur() alongside nearby docstrings. Update the Args and Returns/description text to document blur_factor and accurately describe blurring, keeping the existing style and length. Done when the single-file docstring matches the method’s behavior and nearby documentation conventions.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Aktivitätsstatus
Ruhig
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
88/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.