big_transfer
Official repository for the "Big Transfer (BiT): General Visual Representation Learning" paper.
File Explorer
Download Latest Version (.zip)- __init__.py
- models.py
- requirements.txt
- tf2jax.py
- train.py
- __init__.py
- fewshot.py
- lbtoolbox.py
- models.py
- requirements.txt
- train.py
- __init__.py
- models.py
- normalization.py
- requirements.txt
- train.py
- big_transfer_jax.ipynb
- big_transfer_pytorch.ipynb
- big_transfer_tf2.ipynb
- .gitattributes
- .gitignore
- __init__.py
- bit_common.py
- bit_hyperrule.py
- CONTRIBUTING.md
- input_pipeline_tf2_or_jax.py
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/google-research/big_transfer
Downloads the entire project code from GitHub to your computer.
cd big_transfer
Moves into the project folder you just downloaded.
2. Python
Easy RecommendedPrerequisites
pip install -r bit_{tf2|pytorch|jax}/requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python3 -m bit_{pytorch|jax|tf2}.train --name cifar10_`date +%F_%H%M%S` --model BiT-M-R50x1 --logdir /tmp/bit_logs --dataset cifar10
Runs the Python script (or module).
python3 -m bit_pytorch.train --name ilsvrc_`date +%F_%H%M%S` --model BiT-M-R50x1 --logdir /tmp/bit_logs --dataset imagenet2012 --batch_split 4
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
