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

FIX text_to_image and image_to_image parameters #1582

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Aug 8, 2023

Fix #1581 (cc @zwx00)

Extra parameters (width, height, guidance_scale,...) are ignored by InferenceClient when using text_to_image and image_to_image tasks. This was due to an invalid payload being sent to the server. This PR fixes it + add a test.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 8, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Wauplin!

@Wauplin Wauplin merged commit c1bb75d into main Aug 16, 2023
13 of 16 checks passed
@Wauplin Wauplin deleted the 1581-fix-text-to-image-inference-client branch August 16, 2023 10:33
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.

AsyncInferenceClient ignores extra parameters in text2image call
3 participants