-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Adding Google Gemini Image API node #9566
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
Conversation
| returned_image = bytesio_to_image_tensor(BytesIO(image_data)) | ||
| image_tensors.append(returned_image) | ||
| if len(image_tensors) == 0: | ||
| return torch.zeros((1,1024,1024,4)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's pretty large
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the res of the image that Gemini returns normally, I tried to keep it the same so that previews don't get resized too much
christian-byrne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote these nodes initially and it LGTM
* bigcat88's progress on adding Google Gemini Image node * Made Google Gemini Image node functional * Bump frontend version to get static pricing badge on Gemini Image node
* bigcat88's progress on adding Google Gemini Image node * Made Google Gemini Image node functional * Bump frontend version to get static pricing badge on Gemini Image node
Initial code for this PR was made by @bigcat88 , I finished the remainder required to work with the API endpoint.
Associated frontend PR: Comfy-Org/ComfyUI_frontend#5219