简体   繁体   English

有什么方法可以读取 .pth(dataset) 并将它们转换为 csv 吗?

[英]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.

相关问题 有没有办法找到Dataset的来源? - Is there any way to find the source of Dataset? 有没有办法从无监督数据集中获取关系? - Is there any way to get the relationship from the unsupervised dataset? 使用 Keras 教授 CNN : 如何使用 Pandas 读取 csv 数据集 - Teaching the CNN with Keras : How to read csv dataset using pandas 有什么方法可以将微笑 .csv 文件转换为一种热编码? - Is there any way to convert smiles .csv file in in one hot encoding? 有没有办法实现机器学习 model 可以预测给定数据集中出现次数最多的句子 - is there any way to implement a machine learning model that can predict most occured sentence in a given dataset 有没有办法手动修改从给定数据集学习到的决策树中设置的阈值? - Is there any way to manually modify the thresholds set in the decision tree learnt from a given dataset? 加载 csv 和 pytorch 中的图像数据集 - Load csv and Image dataset in pytorch CNN 用于对 CSV 文件中的数值数据集进行分类 - CNN for classification of numerical dataset in CSV file 有没有办法让 tensorflow js 从 json 文件而不是 csv 读取/训练数据? - is there a way to make tensorflow js read/train data from a json file instead of a csv? 使用 Keras 的 CSV 文件数据集增强 - CSV File Dataset Augmentation using Keras
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM