{"id":21251628,"url":"https://github.com/ntshvicky/fashionmnist_cnn_example","last_synced_at":"2025-03-15T05:24:49.544Z","repository":{"id":159434014,"uuid":"275359564","full_name":"ntshvicky/fashionmnist_cnn_example","owner":"ntshvicky","description":"An example of training convolutional neural networks with Fashion MNIST dataset in C++ and Cmake","archived":false,"fork":false,"pushed_at":"2020-06-27T12:32:24.000Z","size":674,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T20:48:57.180Z","etag":null,"topics":["cmake","convolutional-neural-networks","cpp","fashion-mnist-dataset","fashionmnist-cnn","machine-learning","machine-learning-algorithms"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntshvicky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-27T11:37:51.000Z","updated_at":"2024-05-10T20:39:28.000Z","dependencies_parsed_at":"2023-07-16T17:01:16.219Z","dependency_job_id":null,"html_url":"https://github.com/ntshvicky/fashionmnist_cnn_example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntshvicky%2Ffashionmnist_cnn_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntshvicky%2Ffashionmnist_cnn_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntshvicky%2Ffashionmnist_cnn_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntshvicky%2Ffashionmnist_cnn_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntshvicky","download_url":"https://codeload.github.com/ntshvicky/fashionmnist_cnn_example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243687812,"owners_count":20331407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","convolutional-neural-networks","cpp","fashion-mnist-dataset","fashionmnist-cnn","machine-learning","machine-learning-algorithms"],"created_at":"2024-11-21T03:42:54.797Z","updated_at":"2025-03-15T05:24:49.522Z","avatar_url":"https://github.com/ntshvicky.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fashionmnist_cnn_example\nAn example of training convolutional neural networks with Fashion MNIST dataset in C++ and Cmake\n\n# setup\n1. You have to download Fashion Mnist dataset from https://www.kaggle.com/zalando-research/fashionmnist in data folder....\n\n2. download libtorch library using below command in linux/Ubuntu\n\nwget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip\nunzip libtorch-shared-with-deps-latest.zip\n\nor for window also you can download from here based on your window type  \nhttps://pytorch.org/get-started/locally/\n\n3. to build from cmake you have to create a folder build...go inside build folder and \nexecute this command \nmake -DCMAKE_PREFIX_PATH=/path/to/libtorch ..\n\nafter everything successfull execution execute this comamnd\ncmake --build . --config Release\n\nto build again ..now you just need to execute \"make\" and then \"./main\" to execute the file......\n\ntake help from https://pytorch.org/tutorials/advanced/cpp_frontend.html\n\n\n# Why C++\nPython is easier than c++ , but for embedded application... and for faster performance C++ is better option. Because multithread in C++ is better than Python.\n\nI have no good idea in CNN parameter ..mean what i have to put on input channel, or output channel,, \nhow much layer i need for good accuracy.... You can learn it from https://towardsdatascience.com/covolutional-neural-network-cb0883dd6529\nand try on you program.. for better optimization ..you can use squential instead of linear...... and add more conv2 with padding and pooling layer\nand better to use flatten layer just before fully connected layer......(may be my theory is not good,, i am just learning)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntshvicky%2Ffashionmnist_cnn_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntshvicky%2Ffashionmnist_cnn_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntshvicky%2Ffashionmnist_cnn_example/lists"}