sometimes execution takes a lot of time to respond and causes failure
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
- Ambito
- ai, backend, devops, performance
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Stability-AI/stability-sdk
-
Broken link on readmeAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 45/100
Stability-AI/stability-sdk#319 ·
-
Teste 01Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
Stability-AI/stability-sdk#317 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
Stability-AI/stability-sdk#297 · 2 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Stability-AI/stability-sdk#294 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
Stability-AI/stability-sdk#284 ·
Tutte le issue di Stability-AI/stability-sdk
Issue simili
-
agent: ready area: agent area: monitoring priority: normal type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
dkritarth/scopewatch#200 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
awslabs/agentcore-samples#2185 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
UKGovernmentBEIS/inspect_ai#5802 ·
I maintainer di solito rispondono entro 2 giorni
-
area:retrieval
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
RailtownAI/railtracks#1653 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
asasemahmed/FullDots#10 ·