MCPcopy Create free account
hub / github.com/OpenGVLab/DragGAN / add_points_to_image

Function add_points_to_image

gradio_app.py:55–57  ·  view source on GitHub ↗
(image, points, size=5)

Source from the content-addressed store, hash-verified

53
54
55def add_points_to_image(image, points, size=5):
56 image = utils.draw_handle_target_points(image, points['handle'], points['target'], size)
57 return image
58
59
60def on_click(image, target_point, points, size, evt: gr.SelectData):

Callers 3

on_clickFunction · 0.70
on_dragFunction · 0.70
on_undoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected