Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: add stability-ai image generation in workflow #933

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

deependujha
Copy link

Description

fixes #693

Please include a summary of the change and which issue is fixed or implemented. Please also include relevant motivation and context (e.g. links, docs, tickets etc.).

List any dependencies that are required for this change.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How has this change been tested, please provide a testcase or example of how you tested the change?

YOUR_ANSWER

Any specific deployment considerations

For example, documentation changes, usability, usage/costs, secrets, etc.

Docs

  • Docs updated? What were the changes:

@CLAassistant
Copy link

CLAassistant commented Jan 9, 2025

CLA assistant check
All committers have signed the CLA.

f"Request to StabilityAI API failed: {str(response.json())}"
)
result_image = bytes_to_numpy_image(payload=response.content)
return {
Copy link
Author

@deependujha deependujha Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried returning opencv image, numpy array and bytes. All of them give me error:

{
  "error": "Requested Workflow output serialization, but for output `stability_ai_image_generation` which evaluates into Python type: <class 'numpy.ndarray'> cannot successfully apply any of registered serializers.",
  "inner_error": "None"
}

I tried creating a WorkflowImageData with parentMetdata with random UUID. But, even this gives error:

{
  "error": "Requested Workflow output serialization, but for output `stability_ai_image_generation` which evaluates into Python type: <class 'inference.core.workflows.execution_engine.entities.base.WorkflowImageData'> cannot successfully apply any of registered serializers.",
  "inner_error": "None"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hacktoberfest 2024 | Image Generation Stability AI 🤝 Workflows
2 participants