Skip to content

Sketch2Paint using Gemini #790

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

NSTiwari
Copy link
Contributor

@NSTiwari NSTiwari commented Jun 1, 2025

Hi @Giom-V, @markmcd.
Added the Sketch2Paint example that converts your hand-drawn sketches into beautiful paintings using Gemini's native image generation capabilities.

Could you please review?

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:examples Issues/PR referencing examples folder labels Jun 1, 2025
@NSTiwari
Copy link
Contributor Author

NSTiwari commented Jun 2, 2025

Hi @Giom-V, @markmcd. Added the Sketch2Paint example that converts your hand-drawn sketches into beautiful paintings using Gemini's native image generation capabilities.

Could you please review?

@Giom-V: Formatted the notebook.

@NSTiwari
Copy link
Contributor Author

NSTiwari commented Jun 3, 2025

@markmcd @Giom-V
Sorry, too many errors. Just updated the notebook to follow lint notebook guidelines (inclusive language). Can you please review and merge?

Copy link

review-notebook-app bot commented Jun 6, 2025

View / edit / reply to this conversation on ReviewNB

andycandy commented on 2025-06-06T08:28:07Z
----------------------------------------------------------------

Could you move the import statements to the cells where they’re first used?


Copy link

review-notebook-app bot commented Jun 6, 2025

View / edit / reply to this conversation on ReviewNB

andycandy commented on 2025-06-06T08:28:07Z
----------------------------------------------------------------

Would you mind wrapping the string and adding some indentation in the system instruction block? It’ll make it much easier to read.


Copy link

review-notebook-app bot commented Jun 6, 2025

View / edit / reply to this conversation on ReviewNB

andycandy commented on 2025-06-06T08:28:08Z
----------------------------------------------------------------

This cell is already quite long, so it might be a good idea to add a bit more explanation or inline comments to clarify what's going on, especially in the more complex parts. Also, since the HTML section doesn’t need much elaboration, you could move it to a separate, collapsible cell to keep things cleaner and easier to follow.


Copy link

review-notebook-app bot commented Jun 6, 2025

View / edit / reply to this conversation on ReviewNB

andycandy commented on 2025-06-06T08:28:09Z
----------------------------------------------------------------

Line #5.    prompt = f"Convert this input sketch into a beautiful, detailed painting in {style} style. The painting should be photorealistic and richly textured, capturing the essence of the chosen medium."

Could you wrap this lineup as well for better readability?


Copy link

review-notebook-app bot commented Jun 6, 2025

View / edit / reply to this conversation on ReviewNB

andycandy commented on 2025-06-06T08:28:10Z
----------------------------------------------------------------

I think this might be a notebook issue we’re seeing the same image appear twice. Could you take a look and either fix it or confirm if that was intentional?


@andycandy
Copy link
Collaborator

Amazing notebook, @NSTiwari, the image-generation on a rough hand-drawn sketch is a super cool! Just a suggestion: adding a bit more explanation and splitting it into clear sections could make it even more approachable. Overall, it’s a fantastic and creative notebook!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:examples Issues/PR referencing examples folder status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants