big_transfer

(β˜… 1,542)

Official repository for the "Big Transfer (BiT): General Visual Representation Learning" paper.

  • .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 Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
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