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

Function add_points_to_image

draggan/web.py:56–58  ·  view source on GitHub ↗
(image, points, size=5)

Source from the content-addressed store, hash-verified

54
55
56def add_points_to_image(image, points, size=5):
57 image = utils.draw_handle_target_points(image, points['handle'], points['target'], size)
58 return image
59
60
61def 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