Skip to content

Instantly share code, notes, and snippets.

@Kshitij09
Last active May 8, 2020 10:40
Show Gist options
  • Save Kshitij09/63b7d141348fd9c9a421c23955f4fff6 to your computer and use it in GitHub Desktop.
Save Kshitij09/63b7d141348fd9c9a421c23955f4fff6 to your computer and use it in GitHub Desktop.
Utility script to setup fastai2 on colab
#!/bin/bash
if [ ! -e /content/models ]; then
mkdir -p /root/.fastai/data
ln -s /root/.cache/torch/checkpoints/ /content
ln -s /root/.fastai/data /content
rm -rf /content/sample_data/
mkdir /content/models
fi
echo Installing dependencies
pip install -q feather-format kornia pyarrow wandb nbdev fastprogress --upgrade
echo Installing fastai2
pip install git+https://github.com/fastai/fastcore.git git+https://github.com/fastai/fastai2.git --upgrade
echo Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment