Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#73 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
apache, django, python, ubuntu
Lĩnh vực
ai, backend, devops, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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))
Ngôn ngữ chính
Jupyter Notebook
Star
2.4k
Fork
338
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Stability-AI/stability-sdk

Tất cả issue của Stability-AI/stability-sdk

Issue tương tự

Thêm issue về AI Infra & Agents

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.