Standardize how audio pipelines expose their output sample rate
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
Línea de trabajo
Read the audio pipeline rate attributes listed in the issue and compare how diffusers-cli run and diffusers serve obtain the output rate; the issue names #15017 as relevant context. Decide which proposed API should carry the returned waveform's sample rate, then trace its use through pipeline outputs and modular pipeline parameters. Done means generic tooling can get the correct output rate consistently, including LTX-2's 24000 Hz waveform.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
An audio pipeline returns a bare waveform, so anything that saves it has to find the sample rate somewhere else. Today each pipeline keeps it in a different place:
| Where | Pipelines |
|---|---|
pipe.vocoder.config.output_sampling_rate |
LTX-2 |
pipe.vae.config.sampling_rate |
Stable Audio |
pipe.audio_sampling_rate |
LTX-2, MiniMax-H3, Pika H3 Flex, Echo (modular) |
pipe.sound_sampling_rate |
Cosmos (modular) |
pipe.sampling_rate |
MiniMax Music 3 (modular) |
The same name also doesn't always mean the same thing: in LTX-2, audio_sampling_rate is the audio VAE's rate (16000), while the returned waveform is at vocoder.config.output_sampling_rate (24000).
This makes generic tooling guess:
diffusers-cli runfalls back to 16000 unless the user passes--sampling-rate.diffusers serve(#15017) tries a list of six attribute paths in order.
Proposal
Pick one way for a pipeline to say what rate its output audio is at. Two options:
- A single property on every audio pipeline (e.g.
audio_sampling_rate) that always means the rate of the returned waveform. - Return the rate with the output: a
sampling_ratefield on the output class, or an output param next toaudiofor modular pipelines.
(1) is a small change and modular pipelines are most of the way there. (2) is more robust since the rate travels with the data.
Posted by Claude on behalf of @yiyixuxu. The text was drafted together and approved by yiyixuxu.
- Lenguaje dominante
- Python
- Estrellas
- 35k
- Forks
- 7.5k
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 58
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de huggingface/diffusers
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
huggingface/diffusers#15436 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
InpaintProcessor crashes when padding_mask_crop is set and a dimension is omittedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
huggingface/diffusers#15433 ·
Los mantenedores suelen responder en 1 día
-
LTXEulerAncestralRFScheduler skips signal scaling with s_noise=0Posiblemente ocupada @hparik11 la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
huggingface/diffusers#15423 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Docs: 13 docstrings document parameters their functions don't havePosiblemente ocupada @M-Colley la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
huggingface/diffusers#15363 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
`ZImageImg2ImgPipeline` / `ZImageInpaintPipeline`: explicit height/width different from the input image raises RuntimeErrorPosiblemente ocupada @chessing234 la tomó hace 11 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
huggingface/diffusers#15337 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de huggingface/diffusers
Issues similares
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 79/100
developmentseed/titiler-covjson#164 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
awslabs/visual-asset-management-system#2164 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
MakazhanAlpamys/Soup#3589 ·
Los mantenedores suelen responder en 1 día
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día