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

sometimes execution takes a lot of time to respond and causes failure

Aperta
#73 4 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
apache, django, python, ubuntu

Direzione di ricerca

Start with the Django code shown in the issue, especially StabilityInference.generate with steps=25 and samples=2, and review how it runs behind Apache on Ubuntu. Reproduce or measure the delayed image generation and internal server failure. Done means the cause is identified and the deployment or request handling no longer leaves the server unresponsive for ten minutes.

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

Descrizione

Hi,
Good day. Thank you for this fantastic tool.
we're using your package https://github.com/Stability-AI/stability-sdk (stability-sdk version: 0.2.4) in our Django project on the ubuntu virtual machine using the apache2 webserver but sometimes when we try to generate the image then it takes much time to generate and also sometimes execution takes a lot of time that causes the internal server error and our server not responding for the next 10 minutes
can you explain why it's happened and how to avoid it?

stability_api = client.StabilityInference(key=settings.AI_IMAGE_API_KEY, verbose=True,)
answers = stability_api.generate(prompt=title, seed=34632, steps=25, samples=2,)
 for resp in answers:
       for artifact in resp.artifacts:
             if artifact.finish_reason == generation.FILTER:
                     return Response({"message":"Please modify the prompt and try again"},status=status.HTTP_400_BAD_REQUEST)
              if artifact.type == generation.ARTIFACT_IMAGE:
                      im = Image.open(BytesIO(artifact.binary))
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.