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

Function clear_node_feat

inpaint/mesh.py:346–352  ·  view source on GitHub ↗
(G, fts)

Source from the content-addressed store, hash-verified

344 append_element = lambda d, k, x: d[k] + [x] if key_exist(d, k) else [x]
345
346 def clear_node_feat(G, fts):
347 le_nodes = G.nodes
348 for k in le_nodes:
349 v = le_nodes[k]
350 for ft in fts:
351 if ft in v:
352 v[ft] = None
353
354 clear_node_feat(mesh, ['edge_id', 'far', 'near'])
355 bord_up, bord_down = mesh.graph['bord_up'], mesh.graph['bord_down']

Callers 1

update_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected