Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

【Question】 How to import my own (training, testing) pictures #31

Closed
xdwgood opened this issue Dec 20, 2019 · 6 comments
Closed

【Question】 How to import my own (training, testing) pictures #31

xdwgood opened this issue Dec 20, 2019 · 6 comments

Comments

@xdwgood
Copy link

xdwgood commented Dec 20, 2019

Thanks for this meaningful open source project!
Now that we use the MNIST dataset, I want to know how can I manipulate some pictures for model training?

For example, I have many pictures of "dogs", how do I use cnn-svm, thank you

@AFAgarap
Copy link
Owner

Thank you.

You can use PIL.Image.open() function (install by pip3 install pillow) to load your own images, then store them to a list or a NumPy array.

@xdwgood
Copy link
Author

xdwgood commented Dec 20, 2019

@AFAgarap thank you!

How do I see the recognition result, is there a more intuitive display? Thank you

@AFAgarap
Copy link
Owner

It prints the accuracy and loss during training. But you can write it to use tqdm.

@xdwgood
Copy link
Author

xdwgood commented Dec 20, 2019

@AFAgarap thanks

@vaerdu
Copy link

vaerdu commented Oct 12, 2022

@AFAgarap thanks

请问您用cnn_svm的代码成功的训练了自己的数据集吗?我也想训练自己的数据集,想向您请教一下

@vaerdu
Copy link

vaerdu commented Oct 13, 2022

It prints the accuracy and loss during training. But you can write it to use tqdm.

Can you provide code to train my own dataset? For example: I have a cat and dog dataset and they are all three-channel images, how do I load them into the model? Thank you so much.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants