File size: 331 Bytes
45950ff | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # 扫出data path
import os
data_root = "data/smplx_data"
save_path = 'data/final_data/all.txt'
cnt = 0
# with open(save_path, 'w') as f:
for root, dirs, files in os.walk(data_root):
for file in files:
if file.endswith('.npy'):
cnt += 1
print(cnt)
# f.write(os.path.join(root, file) + '\n')
|