Download check.py from AIGeeksGroup/HMCLIP: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/AIGeeksGroup/HMCLIP/resolve/main/check.py
- Command line
-
hf download hf://AIGeeksGroup/HMCLIP/check.py
-
curl -L -o check.py https://huggingface.co/AIGeeksGroup/HMCLIP/resolve/main/check.py
257 Bytes
| import numpy as np | |
| # 加载文件 | |
| data = np.load('dataset/train_ratescore.npy') | |
| # 查看维度(例如返回 (100, 224, 224, 3)) | |
| print(f"数据的形状: {data.shape}") | |
| # 查看维度的数量(例如返回 4) | |
| print(f"维度的数量: {data.ndim}") |