MCPcopy Create free account
hub / github.com/circuitnet/CircuitNet / get_sub_path

Function get_sub_path

feature_extraction/vis.py:10–22  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

8from src.util import divide_n
9
10def get_sub_path(path):
11 sub_path = []
12 if isinstance(path, List):
13 for p in path:
14 if os.path.isdir(p):
15 for file in os.listdir(p):
16 sub_path.append(os.path.join(p, file))
17 else:
18 continue
19 else:
20 for file in os.listdir(path):
21 sub_path.append(os.path.join(path, file))
22 return sub_path
23
24def resize(input):
25 dimension = input.shape

Callers 1

vis.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected