PyTorch_image_classifier icon indicating copy to clipboard operation
PyTorch_image_classifier copied to clipboard

> Hello, I now want to use resnest to train my own image data set. What I do is image classification, but how to convert my image file into data.csv, because the data processing in the README is a bit unclear, I hope to get Thank you for your reply!

Open zhaoleo1111 opened this issue 4 years ago • 3 comments

Hello, I now want to use resnest to train my own image data set. What I do is image classification, but how to convert my image file into data.csv, because the data processing in the README is a bit unclear, I hope to get Thank you for your reply!

Just convert your data to this format:https://github.com/MachineLP/PyTorch_image_classifier/blob/master/data/data.csv. "filepath": The path of the image. "target": The label of the image. "fold": Not needed.

Originally posted by @MachineLP in https://github.com/MachineLP/PyTorch_image_classifier/issues/5#issuecomment-725309449

zhaoleo1111 avatar Dec 01 '20 13:12 zhaoleo1111

what the fold mean?

zhaoleo1111 avatar Dec 01 '20 13:12 zhaoleo1111

what the fold mean?

https://github.com/MachineLP/PyTorch_image_classifier/blob/master/tools/data_preprocess.py

MachineLP avatar Dec 03 '20 07:12 MachineLP

Hello, I now want to use resnest to train my own image data set. What I do is image classification, but how to convert my image file into data.csv, because the data processing in the README is a bit unclear, I hope to get Thank you for your reply!

Just convert your data to this format:https://github.com/MachineLP/PyTorch_image_classifier/blob/master/data/data.csv. "filepath": The path of the image. "target": The label of the image. "fold": Not needed.

Originally posted by @MachineLP in #5 (comment)

哥们你现在解决了么?我还是有点迷茫,为什么要使用交叉验证的方式处理数据集,而且他那个处理数据集的代码为啥只写了val_index,train_index没了?

qiaofengsheng avatar Jan 27 '22 02:01 qiaofengsheng