Download tools/data_process/process/generate_final_data_path.py from L-yiheng/NMR: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/L-yiheng/NMR/resolve/main/tools/data_process/process/generate_final_data_path.py
- Command line
-
hf download hf://L-yiheng/NMR/tools/data_process/process/generate_final_data_path.py
-
curl -L -o generate_final_data_path.py https://huggingface.co/L-yiheng/NMR/resolve/main/tools/data_process/process/generate_final_data_path.py
331 Bytes
| # 扫出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') | |