https://github.com/baccuslab/imgclass
A project for image classification using many of the same paradigms as torchdeepretina
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.8%) to scientific vocabulary
Last synced: 9 months ago
·
JSON representation
Repository
A project for image classification using many of the same paradigms as torchdeepretina
Basic Info
- Host: GitHub
- Owner: baccuslab
- Language: Python
- Default Branch: master
- Size: 69.3 KB
Statistics
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 6 years ago
· Last pushed over 6 years ago
https://github.com/baccuslab/imgclass/blob/master/
# imgclass A collection of methods and classes to do image classification. ### Training To train a model you will need to have a hyperparameters json and a hyperranges json. The hyperparameters json details the values of each of the training parameters that will be used for the training. See the [training_scripts readme](training_scripts/readme.md) for parameter details. The hyperranges json contains a subset of the hyperparameter keys each coupled to a list of values that will be cycled through for training. Every combination of the hyperranges key value pairs will be scheduled for training. This allows for easy hyperparameter searches. For example, if `lr` is the only key in the hyperranges json, then trainings for each listed value of the learning rate will be queued and processed in order. If `lr` and `l2` each are in the hyperranges json, then every combination of the `lr` and `l2` values will be queued for training. To run a training session, navigate to the `training_scripts` folder: ``` $ cd training_scripts ``` And then select the cuda device index you will want to use (in this case 0) and type the following command: ``` $ CUDA_VISIBLE_DEVICES=0 python3 main.py path_to_hyperparameters.json path_to_hyperranges.json ``` ### Current Models - Tiny10: a model architecture used in [Similarity of Neural Network Representations Revisited](https://arxiv.org/abs/1905.00414). - Plain\(_8n-2_\): a model architecture used in [Similarity of Neural Network Representations Revisited](https://arxiv.org/abs/1905.00414). ## Setup Open terminal on your computer. Clone the repo and switch directories by typing the following: ``` $ git clone https://github.com/baccuslab/imgclass $ cd imgclass ``` You will need to install the package using pip. If you are using anaconda, the following will likely work. If you are not using anaconda, try using `pip3` instead of `pip`. ``` $ pip install --user -e . ``` This should install imgclass and will allow you to do trainings!
Owner
- Name: Baccus Lab
- Login: baccuslab
- Kind: organization
- Email: thebaccuslab@gmail.com
- Website: https://sites.stanford.edu/baccuslab/
- Repositories: 34
- Profile: https://github.com/baccuslab
GitHub Events
Total
Last Year
Dependencies
requirements.txt
pypi
- matplotlib *
- numpy *
- opencv-python *
- psutil *
- scikit-image *
- scikit-learn *
- scipy *
- torch *
- torchvision *
- tqdm *
setup.py
pypi
- i.strip *