MCPcopy Index your code
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / update_info

Function update_info

inpaint/mesh_tools.py:792–799  ·  view source on GitHub ↗
(mapping_dict, info_on_pix, *meshes)

Source from the content-addressed store, hash-verified

790 return depth_dict
791
792def update_info(mapping_dict, info_on_pix, *meshes):
793 rt_meshes = []
794 for mesh in meshes:
795 rt_meshes.append(relabel_node(mesh, mesh.nodes, [*mapping_dict.keys()][0], [*mapping_dict.values()][0]))
796 x, y, _ = [*mapping_dict.keys()][0]
797 info_on_pix[(x, y)][0]['depth'] = [*mapping_dict.values()][0][2]
798
799 return [info_on_pix] + rt_meshes
800
801def build_connection(mesh, cur_node, dst_node):
802 if (abs(cur_node[0] - dst_node[0]) + abs(cur_node[1] - dst_node[1])) < 2:

Callers 4

remove_danglingFunction · 0.90
extrapolateFunction · 0.85
refresh_bord_depthFunction · 0.85
recursive_add_edgeFunction · 0.85

Calls 2

relabel_nodeFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected