cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Sketch2Paint using Gemini

Open NSTiwari opened this issue 6 months ago • 9 comments

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?

NSTiwari avatar Jun 01 '25 03:06 NSTiwari

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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 avatar Jun 02 '25 14:06 NSTiwari

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

NSTiwari avatar Jun 03 '25 03:06 NSTiwari

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?


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.


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.


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?


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?


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!

andycandy avatar Jun 06 '25 08:06 andycandy