Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

animation API errors

Aperta
#263 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
opencv, python
Ambito
ai, api

Direzione di ricerca

The failure is reported at src/stability_sdk/animation.py:217-219 in cv2_to_pil; start by reproducing the animation request with the listed model versions and inspecting the returned frame data before conversion. Done means identifying why no frames are available and documenting or fixing the resulting error path, with a regression check for the affected API response.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm using the animation API and getting

TypeError: 'NoneType' object is not subscriptable

here:
https://github.com/Stability-AI/stability-sdk/blob/main/src/stability_sdk/animation.py#L217-L219

def cv2_to_pil(cv2_img: np.ndarray) -> Image.Image:
    """Convert a cv2 BGR ndarray to a PIL Image"""
    return Image.fromarray(cv2_img[:, :, ::-1])

I guess this is just a symptom that the animation API isn't returning any frames.

I've tried with various model versions:

    # "model": "stable-diffusion-v1-5",
    # "model": "stable-diffusion-512-v2-1",  # have to force this
    "model": "stable-diffusion-xl-1024-v0-9",  # have to force this
    # "model": "stable-diffusion-xl-1024-v1-0",  # have to force this

wondering if the API is currently having downtime or how else I could debug this?

Lingua principale
Jupyter Notebook
Stelle
2.4k
Fork
338
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Stability-AI/stability-sdk

Tutte le issue di Stability-AI/stability-sdk

Issue simili

Altre issue su AI Infra & Agents

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.