Search code examples
machine-learningpytorchtorchtorchvision

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?


Solution

  • .pth files saved with toch.save() are supposed to be binaries. using torch.load() you can get the dataset, and then save it again as a .csv with pandas for example