Last active
May 8, 2020 10:40
-
-
Save Kshitij09/63b7d141348fd9c9a421c23955f4fff6 to your computer and use it in GitHub Desktop.
Utility script to setup fastai2 on colab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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