{"id":15903492,"url":"https://github.com/vfdev-5/caffe-tools","last_synced_at":"2025-04-02T20:15:27.221Z","repository":{"id":149000658,"uuid":"66983263","full_name":"vfdev-5/caffe-tools","owner":"vfdev-5","description":"Tools to use with BVLC/Caffe","archived":false,"fork":false,"pushed_at":"2016-10-03T15:35:59.000Z","size":1412,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T10:43:56.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/vfdev-5.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":"2016-08-30T22:48:44.000Z","updated_at":"2016-08-30T22:53:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a8416b5-51fa-4cb6-8012-820e70a3a6ae","html_url":"https://github.com/vfdev-5/caffe-tools","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2857142857142857,"last_synced_commit":"260eb543cde10c0da3f1f59b8004fc8bad4d354e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fcaffe-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fcaffe-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fcaffe-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfdev-5%2Fcaffe-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vfdev-5","download_url":"https://codeload.github.com/vfdev-5/caffe-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246884767,"owners_count":20849554,"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":[],"created_at":"2024-10-06T12:02:11.710Z","updated_at":"2025-04-02T20:15:27.201Z","avatar_url":"https://github.com/vfdev-5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A set of tools to use with [BVLC/caffe](https://github.com/BVLC/caffe) for deep learning with images\n\nAll tools are written in python and inspired from ideas and algorithms found in various sources.\n\nTools are divided into categories:\n\n- train/test data preprocessing  \n- training / validation / visualization\n\n### Train/test data preprocessing  \n\n- ...\n- ...\n- ...\n\n### Training / validation / visualization\n\n- single image validation and features visualization for classification CNN\n\n  - `single_image_analyze.py` computes net forward pass on a single image and a 'heatmap' of trained features of the model detected on this image. See [here](https://github.com/vfdev-5/caffe-tools/blob/master/trainval/README.md) for more details.\n\n\nFor example, features 'heatmap' of the [famous cat](http://nbviewer.jupyter.org/github/BVLC/caffe/blob/master/examples/00-classification.ipynb) looks like\n\n\u003cimg src=\"https://github.com/vfdev-5/caffe-tools/blob/master/examples/results/ref_caffenet_cat_visu.png\" width=\"1000\"/\u003e\n\n```\npython trainval/single_image_analysis.py cat.jpg bvlc_reference_caffenet/deploy.prototxt bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel --mean ilsvrc12/imagenet_mean.binaryproto --verbose\n```\n\n- network model's graph visualization with matplotlib\n\n  - `draw_net.py` displays network model graph as figures using matplotlib. Make sure that you have *graphviz* and *pydotplus* installed.\n  \n  ```\n  python draw_net.py /path/to/model.prototxt relative/path/to/model2.prototxt\n  ```\n\n## Python 2.7 and dependencies :\n\n* pycaffe from [BVLC/caffe](https://github.com/BVLC/caffe)\n* PyYAML\n* numpy\n* matplotlib\n* scipy\n* sklearn\n* pandas\n* opencv\n* lmdb\n\n\n~~See `requirements.txt` file~~\n\n\n## How to use\n\nSetup your configuration in the `config.yaml`:  \n(you can rename and modify `config.yaml.example`)\n```\n# Path to Caffe repository\nCAFFE_PATH: /path/to/caffe/\n\n# Path to image dataset\nDATASET_PATH: /Pascal_VOC_2011/VOCdevkit/VOC2011/JPEGImages/\n\n# Path to labels file\nLABELS_FILE_PATH: /path/to/data/ilsvrc12/synset_words.txt\n\n# List of available nets: [ [\u003cmodel_label\u003e, \u003cmodel_path\u003e, \u003cweights_path or ''\u003e, \u003cmean_image_path or ''\u003e], ... ]\nNETS_LIST: {\n  'caffe_net': ['bvlc_reference_caffenet/deploy.prototxt', 'bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel', 'ilsvrc12/imagenet_mean.binaryproto'],\n  'vgg16': ['vgg/VGG_ILSVRC_16_layers_deploy.prototxt', 'vgg/VGG_ILSVRC_16_layers.caffemodel', 'ilsvrc12/imagenet_mean.binaryproto'],\n  'resnet50': ['ResNet/ResNet-50-deploy.prototxt', 'ResNet/ResNet-50-model.caffemodel', 'ilsvrc12/imagenet_mean.binaryproto']\n}\n\n# List with paths to models\nMODELS_PATH_LIST: [\n  /path/to/caffe/models,\n  /path/to/fcn/voc-fcn16s\n]\n\n# List with paths to weights\nRESOURCES_PATH_LIST: [\n  /path/to/models,\n  /path/to/fcn/voc-fcn16s\n]\n\n\n# Use CPU instead of GPU\nUSE_CPU: false\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfdev-5%2Fcaffe-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvfdev-5%2Fcaffe-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfdev-5%2Fcaffe-tools/lists"}