[英]Is there any way to read .pth(dataset) and turn them into csv?
I have a repo that provided a model architecture, but not pretrained model.我有一个提供模型架构的仓库,但没有预训练模型。 it actually provides a .pth file but it's dataset inside the file, is there any way to make the dataset to csv?
它实际上提供了一个 .pth 文件,但它是文件内的数据集,有没有办法将数据集制作为 csv?
.pth files saved with toch.save()
are supposed to be binaries.使用
toch.save()
保存的.pth文件应该是二进制文件。 using torch.load()
you can get the dataset, and then save it again as a .csv with pandas for example使用
torch.load()
您可以获取数据集,然后将其再次保存为带有熊猫的.csv文件,例如
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.