pip install datasets
但是国内下载一般由于网络下载失败:ConnectionError: Couldn’t reach ‘reach-vb/pokemon-blip-captions’ on the Hub (ConnectionError)
解决办法(先vp*下载):
下载使用
from datasets import Dataset, load_dataset, load_from_disk
dataset = load_dataset("reach-vb/pokemon-blip-captions")
dataset.save_to_disk(r"E:\allchat\pokemon") # 保存到该目录下
dataset
加载使用
from datasets import Dataset, load_dataset, load_from_disk
dataset = load_from_disk(r"E:\allchat\pokemon")
dataset